New answers tagged

3

The advantage of Apex sharing is that you can calculate sharing conditions that otherwise cannot be done by standard and criteria-based sharing rules. For example, you could base sharing on an web service call, a separate business logic sharing table, standard or custom fields, etc. For the majority of use cases, the various sharing systems in Salesforce ...


3

Note that both of them create share records under the hood. Most of objects in salesforce (exception may be a detail object in master-detail relationships) have a junction object with name __share that holds share records. It’s advisable not to use apex sharing unless you absolutely need it and use the platform sharing features. This is because you can do ...


Top 50 recent answers are included