Hey everyone,
I’ve set up a custom app that sends alerts to our system when contacts, companies, or deals are modified in Hubspot. I used the webhook feature for this.
But now I’m stuck. How can I get notified when relationships between these entities change? Like when a contact gets linked to a company. I don’t think the webhook API covers this.
It’s crucial for me to know about these relationship changes to keep our platform and Hubspot in sync. I’ve looked into it, and my private app doesn’t seem to have an option to subscribe to association updates via webhooks.
Any ideas on how to tackle this? I’m open to other approaches if webhooks won’t cut it. Thanks in advance for your help!
I’ve been down this road before, and it can be a bit tricky. One approach that worked well for me was implementing a delta sync process. Essentially, you’d periodically fetch all the association data for your objects and compare it to your last known state. This way, you can identify any changes in relationships.
It’s not as immediate as webhooks, but it’s reliable. I found that running this sync every 15-30 minutes was a good balance between timeliness and not overloading the API. You’ll need to store the association data on your end, of course.
Another option is to leverage Hubspot’s Workflows. You can set up workflows that trigger on association changes and then have them call a custom action (like hitting an endpoint on your system). It’s a bit roundabout, but it gets the job done if you need near real-time updates.
Remember to handle rate limits carefully whichever method you choose. Good luck with your integration!
yo mike, i had the same issue. ended up using the hubspot API to poll for changes in associations. it’s not real-time but works ok. you could set up a cron job to run every few mins. check out their ‘associations’ endpoint in the API docs. hope this helps!