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.

1 Answer 1

3

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

Further details here

3
  • 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
    Commented Nov 12, 2019 at 5:31
  • for roles do you mean UserRole? Commented Nov 12, 2019 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
    Commented Nov 13, 2019 at 10:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .