Trigger for calls in a specific division is not working

I am working on a trigger which fires whenever a call to our self-service payment flow ends. I am using the topic v2.detail.events.conversation.{id}.customer.end. The self-service payment flow is in its own division, which I am using as the criteria.

The workflow is my test one which only adds Conversation data, so I believe the problem to be the trigger.


I used the developer tools to subscribe to the notification of my test call, but the event schema didn't include the divisionId. When I look up the call in the Interactions View, it does have the correct division assigned.

{
"eventTime": 1731966805099,
"conversationId": "c0cefa17-1234-46cf-a954-d72a55541615",
"participantId": "883eac96-807e-7de8-ca96-257d9735f750",
"sessionId": "17487f05-fe30-3b73-83f8-98567ee4889d",
"disconnectType": "ENDPOINT",
"mediaType": "VOICE",
"provider": "Edge",
"direction": "INBOUND",
"ani": "tel:+19999999999",
"dnis": "tel:+19999999999",
"interactingDurationMs": 126004
}

I am not sure how to get the trigger to work. What am I missing?

Hi,

Triggers can be sensitive, and with no mechanism (yet) to see any trigger logs it could be firing, just failing on you.

Couple things I would try first.
Change the check for division to Equals. As you only have one division.
Change the Data format to JSON.

Found it easy to have failed triggers using TopLevelPrimitives if you define any wrongly in your flow inputs (even the case of field).
Using TopLevelPrimitives, I assume you marked the schema fields you want to use as Inputs to the flow?

I tend to use the Json approach now its been added. Extract json key/value directly from a single JsonData input field.

Good luck

I am having the same issue with 2.detail.events.conversation.{id}.customer.end but using it for a web messaging interaction. I subscribed to the topic in API explorer so I could get the full payload for the conversation (to eliminate any issues with trigger) . I get every field that I would expect for this media type except the last value, divisionId. Any input on what division that field is supposed to represent or what scenarios/media types it is limited to would be greatly appreciated.

{
"eventTime": 1733937299610,
"conversationId": "6741dd8d-6130-40b3-9c36-xxxxxxxxxxxx",
"participantId": "90aab296-a484-4b9d-b2c4-xxxxxxxxxxxx",
"sessionId": "d43afc94-1136-4876-bdb5-xxxxxxxxxxxx",
"disconnectType": "PEER",
"mediaType": "MESSAGE",
"externalContactId": "21ddb4da-8476-4b1d-ad8f-xxxxxxxxxxxx",
"provider": "PureCloud Messaging",
"direction": "INBOUND",
"addressTo": "d13f0801-ba87-405a-8295-xxxxxxxxxxxx",
"addressFrom": "3b15b4b1-046a-43ae-a9bd-xxxxxxxxxxxx",
"messageType": "WEBMESSAGING",
"interactingDurationMs": 123810,
"conversationExternalContactIds": [
"21ddb4da-8476-4b1d-ad8f-xxxxxxxxxxxx"
]
}

Checked my notes from Trigger work, divisionId (and queueId) are not part of the schema customer topics (.start or .end).
Not sure of concise reason for this, probably that at that point the interaction is not allocated to anything (at least the .start, could argue .end should have the last division involved)

a Genesys person should be more explicit on reasoning.

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