TPSS_Development | 2018-12-20 09:05:52 UTC | #1
Is there any API to get count of Agents, who's in NotResponding status?
I am using below code : QualityApi qualityApi = new QualityApi(); UsersApi userApi = new UsersApi(); var agents = qualityApi.GetQualityAgentsActivity(100).Entities; foreach (var item in agents) { try { string status = userApi.GetUserRoutingstatus(item.Agent.Id).Status.ToString(); if (status.ToLower() == "notresponding") { Count++; } } catch (Exception ex) { } } But if number of agents are 100 then loop will run 100 times to check to UserRouteStatus. Is there any other way to get NotResponding agents count? Because sometimes this method is showing "Request limit exceeded error".
tim.smith | 2018-12-20 15:32:24 UTC | #2
https://developer.mypurecloud.com/api/rest/v2/analytics/queue.html
TPSS_Development | 2018-12-21 12:32:53 UTC | #3
I need to get all agents status, not to get a particular queue agents. If this is available in above API. Please explain more.
Thanks
tim.smith | 2018-12-21 17:38:06 UTC | #4
The queue query is the most straightforward way to get counts of users in presences; there isn't a query that I'm aware of that will summarize user presences in the same way. Also take a look at the user status aggregate query or the user status detail query. You need to provide the list of user ID you want to retrieve in those requests though.
system | 2019-01-21 17:38:06 UTC | #5
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: 4231