I was trying to figure out the best way to detect when a company (or contact) is merged using APIs or Webhooks.
Option #1: includeMergeAudits
I found that I can add “?includeMergeAudits=True” query in the GET API, but this would detect all data, without the possibility to filter by lastModifiedDate, so I tried option #2 => using Search API
Option #2: use search API and read for hs_merged_object_ids
If I read the property “hs_merged_object_ids” of a company, I can see any other companies that it has been merged with. This could work, but I’d have to read all the merged objects from there whenever a company is modified, so I’d have to check every time if there’s a new one. I only need this information when the merge occurs, so I’m considering using webhooks. option #3
Option #3: Receive “hs_merged_object_ids” from webhook (property changed)
This solution doesn’t work, I don’t know if this happens because this property is neither provided by the Hubspot properties list in the webhook form nor a custom property.
Is there something I am missing? Is option #2 the only one available for my case?
Thank you in advance