You need to sign in to do that
Don't have an account?
kkr.dev
How to retrieve User from a Queue
Hi All,
What i have Done is from GROUP object i retrieved records
List<Group> lstGroup = [select id,Type,Email,OwnerId,DoesSendEmailToMembers fromGroupwhere Type='Queue' and id='1234xxx']
Now from GroupMember Object retrived based on GroupID
list<GroupMember> lstGroupMember=[Select Id,UserOrGroupId, Group.NamefromGroupMemberwhere GroupId=:lstGroup [0].id];
Now i need to retrive the user from that group.Any Thoughts
Thanks
You are already on the track...
In the second query you will get the userorgroupid, that is all you need. if the userorgroupid starts with 005 then that is the user id . query the user object with the userids and all info you can get there.
Thanks for your reply.From second query i am getting group id.I need to retrieve user from the group.Any Idea?