kphung | 2018-02-26 20:03:18 UTC | #1
For the notification, v2.routing.queues.{id}.users, I see that it is raised when a user is added/removed from the queue and when the queue is set to be active/not active. Is there a way to only raise the notification when a user is added/removed from the queue ? Or is there another notification that already does this ?
Thanks
anon28066628 | 2018-02-26 20:20:30 UTC | #2
Not that I am aware of. You should be able to distinguish between the messages in your client app though.
kphung | 2018-02-26 20:53:16 UTC | #3
I see there is the metadata, action (add, delete, update), is that correct to use to distinguish between the messages ?
anon28066628 | 2018-02-26 22:10:45 UTC | #4
After looking more closely it appears the messages are the same format for Activate / Deactivate Queue and for Add / Remove member of the Queue. You may be able to logically distinguish the two events by caching the list of Queue members and checking if that has changed upon each notification you receive.
kphung | 2018-02-26 22:50:11 UTC | #5
In order to check if the cached queue members has changed, that means I would need to make another request to get the user's list of queues to check against. I'd like to avoid making another request upon notification received if possible.
The metadata I saw, was from inspecting the message received using the purecloud developer tools. I don't see any documentation about it, so not sure if that can be used ?
{ "topicName":"v2.routing.queues.c003ba0a-71eb-4332-8212-5ea3a36e96c5.users", "version":"2", "eventBody":{ "id":"6999df06-9960-4393-998a-c4b061b7f76b", "queueId":"c003ba0a-71eb-4332-8212-5ea3a36e96c5", "joined":false, "additionalProperties":{} }, "metadata":{ "memberCount":1, "action":"add", "CorrelationId":"8ffe1ebf-e4fa-41ca-9de9-04de6978b5bd", "activeMemberCount":1 } }
system | 2018-03-29 22:50:13 UTC | #6
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: 2539