Detecting a Deal Merge

Hi all,

We have an integration with Hubspot that synchronizes deals.

A 1 to 1 relationship is guaranteed by the application internal record id and hubspot deal id, however when a deal merge occurs on Hubspot, the Get operation returns a 404 and synchronization don’t work anymore (as the deal id we have is no longer the result of merge).

We found this information in this forum: "If you make a GET request for Deal A, the dealId in the response will be Deal C’s dealId, so it’s important not to assume that HubSpot will always return the same dealId as the one you requested. " however we’re getting a 404 instead of the new record Id.

Can anyone have a clue?

Thanks.

Hi @TiagoDias

I’ve seen a field in the Schema Json that holds the original Deal ID - from memeory it was “Merged Deal IDs” or something similar.

I would check, using Postman, the Object Schema for the Deal Object.

With a bit of work you will be able to trap the error.

Have fun

Mike

Hi @Mike_Eastwood,

Thank you for leading into the right direction. Checking this link : HubSpot's default deal properties

i found this info:

"Merged Deal IDs: the Record IDs of deals that were merged into the deal record. This is automatically set by HubSpot once a deal merge is completed."

Thank you once again.