Skip to main content
CHANDRA KANT BAGHEL (Algoworks) ๋‹˜์ด #Apex์— ์งˆ๋ฌธํ–ˆ์Šต๋‹ˆ๋‹ค
Hi All

We are trying to update a contact record (which is user contact record) from the sf community using a flow.

And it is the same User which is accessing the community

But the flow seems to break with an error:

The flow tried to update these records: null. This error occurred: INSUFFICIENT_ACCESS_OR_READONLY: insufficient access rights on object id. 

and it seems to be error related to OWD being "Controlled by Parent" for contact and "Private" for Account.

So we tried for Apex Sharing but even the apex sharing is not able to share the contact records.

Apex Sharing insertion list for contactShare recrod is throwing following error in debug:

insufficient access rights on cross-reference id;getStatusCode=INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY;])

So now at this point we are not sure if this is even feasible or not.

Any Approach line or Solution is welcome

Thanks
๋‹ต๋ณ€ 2๊ฐœ
  1. 2021๋…„ 8์›” 10์ผ ์˜คํ›„ 6:05
    You might need to enable 'Allow users to see contacts that have not been enabled for partner or customer accounts' to provide contact access to site user.

    Reference:

    https://help.salesforce.com/s/articleView?id=000316672&type=1

    Hope above information was helpful.

    Please mark as Best Answer so that it can help others in the future.

    Thanks,