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
MikoMiko 

Merging contacts

When a contact gets deleted after a merge, is there a way of knowing the contact SF ID that it got merged to?  I'm extracting data from SF the Data Warehouse and need to logically delete the duplicate contact.  I also need to mimic the merge on data that is not coming from SF --> i.e., all child records of the duplicate contact should be updated to point to the merged contact.

Any help will be appreciated.

Thanks.

 

SuperfellSuperfell
Yes, you can use queryAll and query for deleted contacts that have a masterRecordId, the masterRecordId is the record it was merged with. I think there's a section in the docs on this.