I have a requirement to get the number of pending chat request in the omni channel.

I have set the presence configuration capacity to 5 so that an agent can have only 5 chat requests. if a case is solved agent will get one of the pending chat request. But right now i can't see the number of pending request.

enter image description here

Lets say i have 10 pending request in the queue, but i don't have any numbers to see how many are pending in the queue.

Is there any way that can show the pending chat requests in the queue?


You can do a simple query,

SELECT Id, WorkItemId
FROM PendingServiceRouting
AND IsReadyForRouting = TRUE

This means PSR(PendingServiceRouting) is ready to be routed and Yet to be pushed to anyone's queue.

You can make a custom lightning components that shows the count.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.