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?