0

I have partner community users which have access to our partner community. We have couple of sharing settings applied for partner account when the record is created in Salesforce. We can find this onclick of sharing button from Partner Account page.

Is there anyway I can get a list of those sharing details which are applied for the partner account. Please help me with the SOQL or any other workaround.

3

Each SObject has a sharing object (for example Account has AccountShare). You can fetch these with the condition ParentID = :accId.

Further details here

  • You are super awesome Christian. I got the query but here, I can only able to fetch names of Public Groups and Users type with UserOrGroup.name. I cannot able to fetch names of roles type which are assigned for an account. Could you please help me with that. – Skumar Nov 12 at 5:31
  • for roles do you mean UserRole? – Christian Croce Nov 12 at 8:26
  • I mean Portal Roles that is assigned for Partner Account. In the query, I could only see names for Users and Public Groups but not shared roles like Portal Role. Please suggest – Skumar Nov 13 at 10:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.