Use case here of community is they place orders.
If the user is logged in from an account where "type of distribution" contains "bags" and creates a new order the access to should be resticted to see products that are not of the sub productfamily "Congelado" or "Refrigerado".
At the moment I have the following validation rule on the order item. I'm not sure if this is the right place.
INCLUDES(Order.Account.GFN_Distribution_Type__c, "Bolsas") = TRUE
&& (ISPICKVAL(Product2.ScoutDonation__Temperature_Requirements__c , "Congelado") || ISPICKVAL(Product2.ScoutDonation__Temperature_Requirements__c , "Refrigerado"))
Help would be appreciated.
Thanks, Josh
5 answers
customer community user record access is not controlled by role. Role-based record access is for the internal user due to the volume of customer community user. The system requires to calculate sharing access based on sharing rule. I will recommend you to read below links:
https://trailhead.salesforce.com/en/content/learn/modules/community_rollout_impl/community_rollout_impl_sharing
https://help.salesforce.com/articleView?id=customer_portal_sharing_set.htm&type=5 (https://help.salesforce.com/articleView?id=customer_portal_sharing_set.htm&type=5)
https://help.salesforce.com/articleView?id=networks_visibility.htm&type=5 (https://help.salesforce.com/articleView?id=networks_visibility.htm&type=5)