Pages

Wednesday, July 24, 2024

SOQL query to find Cases owned by a Queue


Select count(Id),Owner.Name from Case where IsClosed = false and Owner.isActive = true and OwnerID IN (SELECT Id FROM Group WHERE Type = 'Queue') GROUP BY Owner.Name

No comments:

Post a Comment