The connector approach is specific to a teams channel, as that’s where the webhook connector is configured to. I am not 100 percent sure if they have built out their Graph API to send messages in Teams yet, but you could use that approach too (not a connector, but plain old rest API to Microsoft Graph)
May I push back on this a little bit? What is the business case that one would want a notification to go to a single person?
When, not if, a person leaves a role or the organization then there is a loss of communication from that point forward. The history of that notification is completely lost on the next person filling the role. Sure, we can give access to the mailbox but what if the person had multiple roles and other roles were sending more sensitive information? What if the original receiver permanently deleted the notice? What if the receiver is temporarily out of the office for planned or unplanned reasons?
I would prefer a single-person team over sending notices to a single person. Just my .02 EUR.
We have several email notifications going to job planners, buyers etc when triggers fire. This at least alerts them to issues but does nothing for anyone in the future that might need that info as you rightly point out. We are about to implement Collaborate which will hopefully allow us to send messages to the job. This will leave a record of the issue on the job for future which is good. I am thinking an improvement would be for Collaborate to also send a Teams message to the planner because they are most likely not at their desk.
Thank you for that. I’m getting stuck at the very beginning.
I copied RestSharp.dll to my client folder, added the assembly reference and I see “extern alias RestSharp;” near the top of the script window.
I add “using RestSharp;” and Test Code.
I get the following error:
Error: CS0576 - line 59 (59) - Namespace ‘<global namespace>’ contains a definition conflicting with alias ‘RestSharp’
We are using RestSharp in BPMs but in this case, I want to send the messages to Teams from a UI customization. I copied the RestSharp dll from the external folder on the server assuming that this version is the one that I should be using.
Another method for this; write a record to a UD table from your UI customization with the data you want to send. Listen to the UD table additions and consume the record server side, using your existing RestSharp server assembly to call the Graph API. Update your UD table record with a success/fail response based on the API response and have a call history and ability to re-try failed ones.