How to Create an Apex Sharing Reason in Salesforce (Custom Objects)
On custom objects, you can define Apex Sharing Reasons—named reasons that label why programmatic access was granted. In Setup, open your custom object, find Apex Sharing Reasons, and click New. Salesforce exposes that reason in Apex as an enum under… Continue Reading