Print this page

Child Records in Subscribing Org are Orphaned

Knowledge Article Number 000247112
Description You may notice that when a Salesforce-to-Salesforce connection initially forwards a parent record (e.g. Account) and related child records (Contacts) to your subscribing org all the children correctly lookup to the parent record.  However, if the Publishing org forwards additional child records they are not related to the previously shared parent record and become orphans.  At this time lookups are not supported in updates of entities.
Resolution As a workaround you'll want to map the Parent Id of the records the Publishing org forwards to you.  Using Accounts and Contacts as an example you would map AccountId in Contact to a custom field in your org, and then use a trigger to relate the Contact with the correct parent Account in your org.




promote demote