TLDR: Syncing deal data to a merged deal does not result in error, nor does it update the merged deal. How can we program for this?
Our customer support team works in HubSpot all day. We sync our application user info to Contacts and their respective businesses to Companies regularly to keep the data consistent. Additionally, we store the Deal ID in our application to easily link from our app to the deal in HS.
There are times when an end user may create a new Business and User account within our application, creating duplicates. To correct, we merge the accounts within our application and within HubSpot.
When merging on HubSpot, the result of the merge sometimes changes the Deal ID. When this happens, the link within our application continues to work, forwarding the user to the updated newly-merged deal.
The issue is when we sync our Deal data to the old ID, we do not receive any errors or warnings. However, the data is not updated on the newly-merged Deal.
To avoid the errors that manually updating can create, how can we programmatically catch for this change in order to update the correct Deal?
In the Object (Deal) there is a Property called "hs_merged_object_ids" this will contain any old Object IDs from before the merge.
Hopefully this will solve your sync issue (with a bit more code ;o)
Have fun
Mike
Here to learn more about HubSpot and share my HubSpot Knowledge. I'm the founder of Webalite a HubSpot Partner Agency based in Wellington, New Zealand and the founder of Portal-iQ the world's first automated HubSpot Portal Audit that helps you work smarter with HubSpot.
As far as I know you can't filter on the Merged Deal IDs (I haven't tried with the Search API).
What if you took a different approach and added your other system's Deal ID – as a Custom Property – in the HubSpot Deal. Then, even if a Deal is merged you can search the Custom property for the deal you want to update.
The above responses are on the new ID assigned to two recently-merged deals. Searching for the old id's of the merged deals returns null on the Search API.