APIs & Integrations

Zikoel
Member

Trigger webhook when Deal associations changes

SOLVE

Hi,

 

Is actually possible to trigger a Webhook when a Deal associations is changing?

0 Upvotes
2 Accepted solutions
WendyGoh
Solution
HubSpot Employee
HubSpot Employee

Trigger webhook when Deal associations changes

SOLVE

Hi @Zikoel,

 

I hope all is well with you 😄

 

Edited: Currently the HubSpot Webhook does not support the `num_associated_contacts` as this property (also known as calculated property) is treated differently on the back end. Here's a list of calulated properties:

Contacts:

  • days_to_close
  • recent_conversion_event_name
  • recent_conversion_date
  • first_conversion_event_name
  • first_conversion_date
  • num_unique_conversion_events
  • num_conversion_events

Deals

  • num_associated_contacts

 

I hope this helps to clarify!

 

View solution in original post

lazevedo
Solution
Participant

Trigger webhook when Deal associations changes

SOLVE

Hubspot has fixed this issue, Webhooks now allow to subscribe to association changes, this is a very welcomed improvement.

 

hubspot-association-changed.png

View solution in original post

8 Replies 8
ArunSundaram
Participant

Trigger webhook when Deal associations changes

SOLVE

Hi,

 

As mentioned above, though "num_associated_contacts" is mentioned as not being supported by webhooks, I could manually add a subscription for this field (for Deal type) and I am able to receive propertyChanged payload for this property when a contact is newly associated/removed from a deal.

 

Is this not expected to happen?

 

Arun

 

 

0 Upvotes
dcabrera
Member

Trigger webhook when Deal associations changes

SOLVE

Hi , I have this same issue now , i need a way to trigger and update to my ERP when a deal associate any contact , i already have webhooks to make update on other properties , but there isn't a subscription type to listen this kid of change ?

0 Upvotes
WendyGoh
Solution
HubSpot Employee
HubSpot Employee

Trigger webhook when Deal associations changes

SOLVE

Hi @Zikoel,

 

I hope all is well with you 😄

 

Edited: Currently the HubSpot Webhook does not support the `num_associated_contacts` as this property (also known as calculated property) is treated differently on the back end. Here's a list of calulated properties:

Contacts:

  • days_to_close
  • recent_conversion_event_name
  • recent_conversion_date
  • first_conversion_event_name
  • first_conversion_date
  • num_unique_conversion_events
  • num_conversion_events

Deals

  • num_associated_contacts

 

I hope this helps to clarify!

 

lazevedo
Solution
Participant

Trigger webhook when Deal associations changes

SOLVE

Hubspot has fixed this issue, Webhooks now allow to subscribe to association changes, this is a very welcomed improvement.

 

hubspot-association-changed.png

Jaycee_Lewis
Community Manager
Community Manager

Trigger webhook when Deal associations changes

SOLVE

Hey, @lazevedo 👋 Thank you very much for being a hero and updating this older post with current details 🙌 — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
Anders_Iversen
Participant

Trigger webhook when Deal associations changes

SOLVE

Hi Wendy

 

I can't seem to find the num_associated_contacts property when I try to add a new subscribtion to my webhook. I choose deal as object type, property changed as event to listen for, and then there's no num_associated_contacts in the list of properties (I've also looked for something similar choosing contact or company as object_type.

What am I doing wrong?
Thanks in advance!

0 Upvotes
kloganproteus
Member

Trigger webhook when Deal associations changes

SOLVE

Wendy,

 

The API docs (https://developers.hubspot.com/docs/methods/webhooks/webhooks-overview) now says that the num_associated_contacts property of Deal is not supported for webhooks.   Do you know if that is correct or if it has changed recently?

 

I'm trying to find a way to get notified when a Contact is added/removed from a Deal or a Company and came across this post.

WendyGoh
HubSpot Employee
HubSpot Employee

Trigger webhook when Deal associations changes

SOLVE

Hey @kloganproteus,

 

Sincere apologise for the misinformation above.

 

As Derek mentioned in this dev forum, the `num_associated_contacts` isn't a supported property for HubSpot Webhook, as this property is treated differently from our backend.