dkprado | 2017-03-02 17:01:34 UTC | #1
Hi.
Is there a way, using the Platform API, to read all Agents from a given Queue, retrieving their current routingStatus?
If I call the API WITHOUT routingStatus in the query, I see all Agents in the Queue, but I don't see their routingStatus field in the results. The only way I can see that field in the resuts is by filtering it in the query string (i.e. routingStatus = OFF_QUEUE).
https://api.mypurecloud.com/api/v2/routing/queues/fb2f22b9-f0dd-483c-8fd4-611d83489675/users?pageSize=1000&sortBy=name&routingStatus=OFF_QUEUE&joined=TRUE
Is it possible to use ANY or * as a filter option for routingStatus?
Is there a better way to retrieve this kind of activity overview, just like the /engage/queues/activity/ does?
Any input is very welcome. Thanks.
tim.smith | 2017-03-02 17:04:29 UTC | #2
Use expand=routingStatus in the query string to include the routing status with each user in the results.
dkprado | 2017-03-02 18:50:30 UTC | #3
Excellent. This will help me a lot.
Going further, is it possible to expand details on which OFF_QUEUE status (Break, Meal, etc) the Agent currently is?
Thanks for your support.
Posted just too soon. Expand on "presence" would cover this, right?
tim.smith | 2017-03-03 17:40:49 UTC | #4
dkprado, post:3, topic:997
Expand on "presence" would cover this, right?
Correct. The full list of allowed expand parameters is documented with the resource: GET /api/v2/routing/queues/{queueId}/users
system | 2017-08-28 19:32:34 UTC | #5
This post was migrated from the old Developer Forum.
ref: 997