+ Start a Discussion
sfdc expert 3sfdc expert 3 

Share Parent record when child record is shared

Hello,

We need to automatically Share a Parent record when a Child record is shared to a User through Manual Sharing Button.Can anyone please let me know,How to implment this solution.

Thanks
anka lexanka lex
Hi ,
please check thiss link,
http://www.jitendrazaa.com/blog/salesforce/apex-based-sharing-in-salesforce/

First create a button on Detail page : Access to Parent Records
Using instance of Test__c  t = trigger.new , get the child records and add child records to Test_Share table.  
Thanks,