APIs & Integrations

nickgoloborodko
Contributor

Merging contacts does not fire webhooks for properties that are changed

SOLVE

We use webhooks to keep data in sync with our internal ERP system.

Looks like if two contact are merged - the webhooks are not fired for the contact that is merged to.

This causes us a lot of headaches with data going out of sync. When will this be resolved and what are the current workarounds?

Thanks,
Nick

1 Accepted solution
VMackay
Solution
Member

Merging contacts does not fire webhooks for properties that are changed

SOLVE

If I'm understanding your question correctly. There is a webhook for merge. Although past association changes it doesn't send the properties that are changed.  What it sends is something like the json below. The work around I'm using is to make a get request to the hubapi with the newObjectId and setting the fields in the system I'm integrating to with that response.

[

  {
    "eventId": 3096252513,
    "subscriptionId": 1997119,
    "occurredAt": 1678934801130,
    "subscriptionType": "contact.merge",
    "attemptNumber": 0,
    "objectId": 17851,
    "changeSource": "CRM_UI",
    "newObjectId": 17851,
    "primaryObjectId": 17851,
    "mergedObjectIds": [
      17701
    ],
    "numberOfPropertiesMoved": 42,
  }
]

View solution in original post

14 Replies 14
VMackay
Solution
Member

Merging contacts does not fire webhooks for properties that are changed

SOLVE

If I'm understanding your question correctly. There is a webhook for merge. Although past association changes it doesn't send the properties that are changed.  What it sends is something like the json below. The work around I'm using is to make a get request to the hubapi with the newObjectId and setting the fields in the system I'm integrating to with that response.

[

  {
    "eventId": 3096252513,
    "subscriptionId": 1997119,
    "occurredAt": 1678934801130,
    "subscriptionType": "contact.merge",
    "attemptNumber": 0,
    "objectId": 17851,
    "changeSource": "CRM_UI",
    "newObjectId": 17851,
    "primaryObjectId": 17851,
    "mergedObjectIds": [
      17701
    ],
    "numberOfPropertiesMoved": 42,
  }
]
05537
Member

Merging contacts does not fire webhooks for properties that are changed

SOLVE

It seems like every day I hit another baffling fundamental blocker like this thanks to hubspot. It's so bad for engineers.

Sambo
Participant | Diamond Partner
Participant | Diamond Partner

Merging contacts does not fire webhooks for properties that are changed

SOLVE

There are two Ideas, that can be upvoted:
https://community.hubspot.com/t5/HubSpot-Ideas/Webhooks-to-trigger-on-merge/idi-p/437948
https://community.hubspot.com/t5/HubSpot-Ideas/Offer-a-webhook-event-for-merged-records/idi-p/432497

Hopefully, we can find a solution for this soon! 

Sami Sundberg
HubSpot Freelancer | Digital Architect



Did my post help answer your query? Help the community by marking it as a solution.

0 Upvotes
KMurota
Top Contributor

Merging contacts does not fire webhooks for properties that are changed

SOLVE

Update please.



Kan Murota | Founder of Hyper Automation Design Studio
logo
0 Upvotes
MCoghlan
Participant

Merging contacts does not fire webhooks for properties that are changed

SOLVE

Any update or workaround please?

atoukourou
Participant

Merging contacts does not fire webhooks for properties that are changed

SOLVE

Any update on this issue please ?

GARDUIN
Participant

Merging contacts does not fire webhooks for properties that are changed

SOLVE

Any update on this issue please ?

GavL89
Member

Merging contacts does not fire webhooks for properties that are changed

SOLVE

I'm having the same issue as well, we have external systems which rely on data being associated to company and contact ids in hubspot, the web hooks are not triggered on a merge and so the data in our systems becomes orphaned.

cbisnett
Participant

Merging contacts does not fire webhooks for properties that are changed

SOLVE

Not only is there no way to subscribe to a merge event, but merging doesn't trigger a deleted event either. So when merging two companies the secondary company is deleted but there is no event.

 

Even if a merge subscription is not added is it possible to at least trigger a deleted webhook for the company or contact that is deleted during the merge? With this I think we could work around not having a merge event and try to resolve the data through the API. Without it, we're left with corrupt data that we only identify as bad when we try to use the API in the future.

phil_swelly
Participant

Merging contacts does not fire webhooks for properties that are changed

SOLVE

any update from HubSpot on that?

 

Or any workaround?

Dedupely
Contributor

Merging contacts does not fire webhooks for properties that are changed

SOLVE

To say that this is massively important for our (common) customers is an understatement. We need this functionality. Otherwise we need to do workarounds that make customers less happy with the solution and takes large amounts of time out of our schedules.

 

Any way I can push this up the dev team's priority list?

BradHarder
Member

Merging contacts does not fire webhooks for properties that are changed

SOLVE

Is there any update on this?

We have some data that exists externally that requires updating when companies are merged, and there doesn't appear to be any webhook triggers available to create. It also doesn't seem to fire any of the "update" triggers that I have set for fields.

0 Upvotes
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Merging contacts does not fire webhooks for properties that are changed

SOLVE

Hi @nick-goloborodko,

I'm not entirely sure if this is working as designed or not; I know that we exclude contact merges from triggering certain functionality to avoid certain things like erroneous workflow enrollments. let me dig into this with my team; I'll update this thread when I have more info.

0 Upvotes
PG3
Participant

Merging contacts does not fire webhooks for properties that are changed

SOLVE

Hello,

 

Could you please update ?

 

Thank you

 

0 Upvotes