function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Pablesh Kumar 1Pablesh Kumar 1 

How to query Current Queue size for Omni channel.

I want to create 3 queues and want to assign cases on the basis of queue size like if Queue 1 is full then I want to assign the task in Queue 2 like this.
Raj VakatiRaj Vakati
Select Id ,Capacity from PresenceUserConfig 
Select Id ,CapacityPercentage ,CapacityWeight from QueueRoutingConfig 
Prashant Pandey07Prashant Pandey07
you may try something like this..
SELECT count() FROM Case where OwnerId in (select id from Group where QueueRoutingConfigId != null)
--
Thanks,
Prashant