Salesforce Asked by Eduardo López on December 10, 2021
I’m building a community in which new users (Accounts) are assigned to a given Partner after the signup. Hence, the Partner takes ownership of the account.
New users must provide additional information after the signup. This is done by showing a Flow in the community’s landing page. This flow should then update the user’s account with the given information.
The problem is that the account is not owned by the new user, but by the Partner, so attempts to update the user’s Account information within the flow fail:
Error element update_address (FlowRecordUpdate). The flow tried to
update these records: null. This error occurred:
INSUFFICIENT_ACCESS_OR_READONLY: insufficient access rights on object
id. […]
I’m aware I could ask for all required information within the initial signup-form but I would like to avoid that to keep that form as simple as possible.
So I would like to know the best way to allow users to update their own Account information without messing too much with account ownership or organization-wide sharing settings.
NOTES:
Thanks in advance
The Field "How to run the Flow" under the advanced Flow Settings defines which resources will be available when the flow is executed:
Best practice, in this case, would be to use "System Context with Sharing" and define specific sharing settings for the Account object.
Answered by Eduardo López on December 10, 2021
You can set the OWD for Account to be Private and add criteria based Account Sharing Rule.
You can use Record Type for criteria (or any other field that uniquely identifies such Account records for Community users).
For example, the below sharing rule shares the Account records with all Custom Portal Community users.
Answered by Prakhar Saxena on December 10, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP