+ Start a Discussion
shra1_devshra1_dev 

Salesforce to Saleforce through Apex

Hi,

 

 

Whenever an Account record is created in source org it has to be shared to dest org. I am doing it through after insert trigger on Account.

 

In that i was sharing the related records as well, that is relatedrecords = 'contact';

 

When i create a contact in source org for the account which is shared to dest org.

 

the contact is not been shared in the destination organization. How to make it to be shared to the destination org?

 

Should i write trigger on contact as well? If this is the answer, for how many related objects of Account, I should write the triggers.

 

Please give the solution....

 

 

Thanks & Regards,

Shravan