You need to sign in to do that
Don't have an account?
souvik9086
Salesforce to salesforce three level deep migration
Hi,
I have transferred two level deep records from one organisation to another through salesforce to salesforce.
For e.g Account and its related contacts.
But how can we transfer three level deep records at one go i.e Account -> Contact -> A child object of Contact.
I'm using this method
for(Account acc:ls) { //object declaration for PartnerNetwork PartnerNetworkRecordConnection newrecord = new PartnerNetworkRecordConnection(); system.debug('Second for loop'); newrecord.ConnectionId = network.Id; newrecord.LocalRecordId = acc.id; newrecord.RelatedRecords = 'Contact,Opportunity'; newrecord.SendClosedTasks = true; newrecord.SendOpenTasks = true; newrecord.SendEmails = true; //All the Records are added to the PartnerNetwork lstShareRecords.add(newrecord); }
In this way I'm transferring Account, related Contacts and opportunities. But how can we transfer any child records of contact or opportunity at one go?
If anyone knows about this kindly help me out.
Thanks in advance