You need to sign in to do that
Don't have an account?
Samruddhi Gokhale
How to get roleId from GroupMember?
My group has all the users with a specific name. I have tried below query:
select group.relatedId from GroupMember where id = '<my group id>'
Though my group is related to a single role, I still get null in relatedid. What is the reason?
select group.relatedId from GroupMember where id = '<my group id>'
Though my group is related to a single role, I still get null in relatedid. What is the reason?
Can you use "select RelatedId from group" and see if its working, it should work as per me.
Best Regards
Naga Kiran
You can not get the RelatedId in groupmember .You can get the Group.Name and other Group Fields .
To get the roleId you need to query from user with the userid related to GroupMember .And you canget the role id from User .
You can check the below link. May be due to the many to many relationship we ar enot getting the relatedid in GroupMember .
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_erd_users.htm
Let m eknow your view .