Activity Forums Salesforce® Discussions How to query queue members in salesforce?

  • Kirandeep

    Member
    September 24, 2020 at 2:11 pm

    query [Select Id from Group where type='Queue' and Name='Queue Name'] will return the Id of the required queue in the system. Use this Id of the queue in the query [Select UserOrGroupId From GroupMember where GroupId =:reqdGroupId] to fetch all the users or groups which are members of the required queue.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos