+ Start a Discussion
sfdc expert 3sfdc expert 3 

Share Parent record when child record is shared


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.

anka lexanka lex
Hi ,
please check thiss link,

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.