Santman
Santman

Reputation: 1

How to get users presence status and number of users available in a specific queue?

How can I retrieve the presence status of a specific D365 User?

How can I retrieve the number of users available in a specific queue?

I have the User-ID and the Queue-ID available but can't make it.

I tried to get the number of available Agents with this:

GET https://{myorg}.crm.dynamics.com/api/data/v9.2/queueitems?$filter=_queueid_value eq {myqueue} and statecode eq 0&$select=_workerid_value

Answer (even if a minimum of one Agent is available):

{
    "@odata.context": "https://{myorg}.crm.dynamics.com/api/data/v9.2/$metadata#queueitems(_workerid_value)",
    "value": []
}

Upvotes: 0

Views: 97

Answers (0)

Related Questions