Brains66 | 2022-07-15 03:47:08 UTC | #1
Hi Im working my way though setting up some Process Automation Im createing a trigger using
"topicName": "v2.detail.events.conversation.{id}.customer.end", "target": { "type": "Workflow", "id": " WorkflowID"
Its all works well when I create a trigger with "matchCriteria": [ { "jsonPath": "mediaType", "operator": "Equal", "value": "VOICE" } (The associated workflow gets initiated)
but if I try to use a queueId in the filter { "jsonPath": "queueId", "operator": "Equal", "value": "(actual long queue ID here)" } The trigger gets created OK, but when I test it the expected workflow doesnt kick into life
I'm not sure where I'm going wrong? The queueId I'm using is correct, so Im at a bit of a loss.
Any help or examples would be appreciated Cheers Brian
chunkeat26 | 2022-07-19 17:04:55 UTC | #2
Hi, looking at the conversation structure emitted by the event, queueId wasn't a field available in v2.detail.events.conversation.{id}.customer.end.
when you specify it as the filter, I believe it evaluated as FALSE at all time.
{ "eventTime": 0, "conversationId": "string", "participantId": "string", "sessionId": "string", "disconnectType": { "enum": [ "UNKNOWN", "ENDPOINT", "CLIENT", "SYSTEM", "TRANSFER", "ERROR", "PEER", "OTHER", "SPAM", "TIMEOUT", "TRANSPORTFAILURE", "CONFERENCETRANSFER", "CONSULTTRANSFER", "FORWARDTRANSFER", "NOANSWERTRANSFER", "NOTAVAILABLETRANSFER", "UNCALLABLE" ] }, "mediaType": { "enum": [ "UNKNOWN", "VOICE", "CHAT", "EMAIL", "CALLBACK", "COBROWSE", "VIDEO", "SCREENSHARE", "MESSAGE" ] }, "externalOrganizationId": "string", "externalContactId": "string", "provider": "string", "direction": { "enum": [ "UNKNOWN", "INBOUND", "OUTBOUND" ] }, "ani": "string", "dnis": "string", "addressTo": "string", "addressFrom": "string", "callbackUserName": "string", "callbackNumbers": [ {} ], "callbackScheduledTime": 0, "subject": "string", "messageType": { "enum": [ "UNKNOWN", "SMS", "TWITTER", "FACEBOOK", "LINE", "WHATSAPP", "WEBMESSAGING", "OPEN", "INSTAGRAM" ] }, "interactingDurationMs": 0 }
Brains66 | 2022-07-19 00:43:12 UTC | #3
Thanks CK, Makes sense now :-) (and works)
system | 2022-08-19 00:43:41 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 15537