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
Ankita Gupta 65Ankita Gupta 65 

Forward records with Attachments using salesforce to salesforce using apex

I have 2 objects-Parent and Child object with master-detail relationship between them. The child object has standard notes and attachments in it. I have established Salesforce 2 Salesforce(S2S) between two orgs(sandboxes). I have written 2 triggers:
1. 1 trigger to forward the master object using S2S
2. 1 trigger to pass the child object. The master detail relationship is successfully maintaned in the target org.

However, I'm unable to pass the attachments of the child object. Using RelatedRecords(Attachment) on PartnerNetworkRecordConnection instance also does not help.Please suggest