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
Ramesh Rage 7Ramesh Rage 7 

How to share records owned by customer community licence users with salesforce platform users

We have e-commerce community in our org. Here customer community users will submits their orders after shopping online and these orders will be reviewed and approved by salesforce platform users from CRM. Actual problem comes here, we couldn't share community user records with CRM users. we wrote apex trigger to share records using apex sharing but it is not working.

NOTE that we don't want to use view All or modify All permissions in profile because this will provide complete access to the users.

your suggestions or ides will be most appreciated.

Thank you guys...
Joseph BauerJoseph Bauer
Create a sharing group. This doc has details on sharing in communities:
Ravi Dutt SharmaRavi Dutt Sharma
Hi Ramesh,

1) Create a queue which will have all the team members of CRM team who will approve the order.
2) Write an after insert trigger on Order and change the owner of Order to the queue we created in step1.

By changing the owner, the Order record will be visible to all members of the queue. Hope this helps. Thanks.