+ Start a Discussion
Chamil MadusankaChamil Madusanka 

Regarding Apex Sharing

Hi All,


I know that administrators can create up to 300 sharing rules per object, including up to 50 criteria-based rules.

My question is,

Is there any limit for Apex sharing?


Thanks in Advance!


you need to respect some of the limits when you have apex managed sharing

  • Only users with the “Modify All Data” permission can add, edit, or delete sharing that uses an Apex sharing reason.
  • Deleting an Apex sharing reason will delete all sharing on the object that uses the reason.
  • You can create up to 10 Apex sharing reasons per custom object.