function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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!

kiranmutturukiranmutturu

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.