You need to sign in to do that
Don't have an account?
Detecting Contact Mergers via API
Hi -
I need to do some special processing on our system when a contact gets merged into another contact.
Currently, I have no way of detecting that a merge has taken place via the API. We are being notified the deletion of the contact who did not survive the merge (via the getDeleted() call), and (via the getUpdated() call) we are being notified of an update of the contact who did survive, but I can see no way of knowing that an actual merge has taken place, nor can I associate the deleted contact's id to the surviving contact's id. Is there any way of doing this?
Thanks!
Jeff Podlogar
Hi ADC Test User,
I don't see any way to detect that a contact is the result of merging two or more contacts either. The only thing that I can come up with is implied logic. It appears that the deleted timestamp is the same as the SystemModstamp on the updated record to the second.
If the deleted record is a contact and there is an updated contact record with the same timestamp (to the second) then the contact update was the result of a merge.
Not perfect, but may do the trick.
-Bill
I'm struggling with the same issue. Using SystemModstamp doesn't sound error-free. Is there a more thorough solution to this problem yet? How can I obtain the final merged contact id for a given contact using its old id?
Thanks in advance.
queryAll("Select id, masterRecordId from contact where MasterRecordId != null")