Tag: SharingRules
-
Why Is My Apex Sharing Rule Not Granting Record Access?
Question I am trying to share Project__c records with the Project Management Team public group when Priority__c is set to “High” using an Apex sharing rule. To achieve this, I created an Apex Sharing Reason called Project_Sharing_Rule and implemented the following trigger and helper class: Trigger Code Apex Class Code Answer The error occurs because…