function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sunil PalSunil Pal 

Role id from group member

How to get the roleId from group member if the group containing role.

 

 

 

Thanks

hitesh90hitesh90

Hi sunil,

 

You can get RoleId from groupmember if grop containing role using following SOQL query.

 

SOQL query:

select Group.RelatedId from GroupMember 


Important :
Hit Kudos if this provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.

Thank You,
Hitesh Patel
SFDC Certified Developer & Administrator
My Blog:- http://mrjavascript.blogspot.in/

Sunil PalSunil Pal

Thanks for reply but the id which i am getting is not role id.its showing Insufficient Privileges even I logged in as system admin

sandeep@Salesforcesandeep@Salesforce

[ select RelatedId from group ]