APIs & Integrations

JZhao
Participant

How can I listen on association change via webhook?

Résolue

I am adding webhook on crms extension and I can configure which propertise change I can listen on via webhook. But how can I let association change go to webhook? e.g. I'd like to get events when a contact is associated to a company. How can I do that? 

1 Solution acceptée
dennisedson
Solution
Équipe de développement de HubSpot
Équipe de développement de HubSpot

How can I listen on association change via webhook?

Résolue

@JZhao ,

You could subscribe to num_associated_contacts

That property updates everytime a new contact is associated with a company

@prosa , any additional thoughts?

Voir la solution dans l'envoi d'origine

4 Réponses
dennisedson
Solution
Équipe de développement de HubSpot
Équipe de développement de HubSpot

How can I listen on association change via webhook?

Résolue

@JZhao ,

You could subscribe to num_associated_contacts

That property updates everytime a new contact is associated with a company

@prosa , any additional thoughts?

lazevedo
Participant

How can I listen on association change via webhook?

Résolue

Hubspot has added the option to subscribe to association changes notifications on objects under Webhooks:

hubspot-association-changed.png

JZhao
Participant

How can I listen on association change via webhook?

Résolue

Thanks @dennisedson , where can I find the document for all such properties? 

0 Votes
dennisedson
Équipe de développement de HubSpot
Équipe de développement de HubSpot

How can I listen on association change via webhook?

Résolue

You can use the properties api to get a list of all available properties.  I just did a search from there to find that one.