[SalesForce] Criteria-Based Sharing Rules Limited To 50 [Per Object]

For those familiar with the subject, how would you go about circumventing the limit of 50 criteria-based Sharing rules?

  • Is there an Apex-based solution for critera-based Sharing?
  • Is there some OTHER solution I'm not considering?

Using "Owner" is not feasible. We are controlling access to (currently) FIVE company divisions, and JUST Sharing for that is SIX Sharing Rules per Object. I'm quite certain we will run out of Rules before we are done with our implementation.

I should have known about this limit; when I took over the Org setup, this was one of the things that "survived" from the previous beginnings of implementation, and I stuck with it, not having vetted out the fact that we could have 10, 20, 50 objects needing Sharing Rules based on Criteria (that includes accounting for "controlled by Parent" entries that won't count, thankfully).

For reference: SF Idea for increases limit on criteria-based sharing

SF Help: Criteria-Based Sharing Rules


UPDATE: Fixed title as the limit is PER OBJECT.

Best Answer

I see there is Help at SF for Apex-based Sharing, using ObjectName__Share objects. But I see no mention of limits. I also feel this is much more cumbersome and technical than an "SF Admin" would normally do (by the SF definition of an SF Admin).

Sharing a Record Using Apex

Without knowing the LIMITS using these methods shown, I am unclear if this would at least circumvent the 50 limit imposed on the GUI-based Sharing Rules.


UPDATE: There seems to be no theoretical limit to Apex-based direct sharing via the __Share records.

Related Topic