Salesforce Fact #885 | Public group count

With SOQL query, we can get to know the count of public groups inside a Queue. We can make use of the UserOrGroupId field of GroupMember object.

Example Query: SELECT Count(Id) FROM GroupMember WHERE Group.Name='Test Lead Queue' AND UserOrGroup.Name = NULL

Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow