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
theDtheD 

implement controlled by parent sharing in custom object with only lookup

I am looking to implement Apex Sharing  in the Controlled by Parent model on a custom object that only has a lookup (since it is too deep to add another parent/child). Has anyone out there done this?

Thanks
theDtheD
More....Will a custom objects trigger fire after doing a manual share on the record? IF that does fire, I would like to logically update all of the rows tin the object related by the lookup to this object and update/replicate the shares that are on the ACL for the Parent. 

Hoping someone has done something like this out there....
theDtheD
To answer my own question, it looks like there is no trigger fired when you manually share or unshare a record and you can't create a trigger on the  share object. Looking like scheduled batch(don't really like this) or I saw someone mention creating your own share button(also ugly). I feel like I am in between a rock and hard place here. 
 
theDtheD
Can  anyone help here? Looking for some sample code if possible.