Trigger assistance and retrieving the userId for outbound call

Hi all,

Hope the fine folks here can lend a hand with a trigger. 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 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 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

If you decide that you will need the full JSON payload then you might ask your architect questions in the architect room.

--Jason

Thanks Jason. I'll post a similar question over in the Architect room. Thanks again.

Shane

Hi Shane,
I am facing a similar need and was wondering if you were able to get an answer?

Hi Mihail,

Sorry for my delayed response. I was able to get what I needed, thanks to help from Zubair.
Here is a link to his response and it does indeed work. I was able to get the user that placed the call as well as other info such as EventTime.

https://developer.genesys.cloud/forum/t/how-to-get-username-in-architect-workflow-from-a-trigger/29471

Hope this helps!

Thanks,
Shane

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.