Hi all,
I posted this in the Triggers room and it was suggested, I bring it over to the Architect forum for assistance.
Hoping someone here can help. Here is our goal, we want to create a trigger that calls a workflow to send out an email notification when someone places an Outbound call to an Emergency route (i.e. 911 or 933).
We'd like to be able to include items such as the user who is making the Emergency call. Can we get the user name (ultimately we need the friendly name of the user and not the GUID) by using TopLevelPrimitives? If so, any idea on how to properly retrieve that in Architect? We know how to get the ConversationId and other TopLevelPrimitives in Architect from a workflow/trigger, from there, unsure of how we'd get the userId.
If not, would we need to use Json as the data output and then jsonData in Architect? If so, I can't find an example of how to extract attributes from this jsonData object in Architect. Specifically, how would we get say the userId/username and conversationId?
Fingers crossed that someone has done something similar to this. Using top level primitives, I believe we can get everything we need, except I'm unsure about the user who is placing the outbound call.
I'll keep working this and if I discover a solution, I'll post an update here.
Thanks as always,
Shane