- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Incremental sync of Hubspot Associations
SOLVESep 30, 2019 5:34 AM
Hi,
When we are making changes to Associations within Hubspot on a Deal level, the changes do not come through on the Deals API, recently modified endpoint.
How can I obtain incremental Hubspot Associations when changes have taken place?
Regards,
Wian
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Accepted Solutions
Oct 21, 2019 10:02 AM
Hi, @louwrenswian.
Apologies for the delayed response. I do have an update to share:
The engineering team currently considers this expected behavior and has no immediate plans to change it.
The deal hs_lastmodifieddate
property which this endpoint checks only updates when a deal property value is changed.
The hs_lastmodifieddate
property changes for deals when a contact association changes because there is already a default deal property num_associated_contacts
which automatically updates when a deal's contact associations change. Thus, hs_lastmodifieddate
is updated because of the num_associated_contacts
property update, not directly because of the association update.
Isaac TakushiAlumnus, HubSpot Developer Support |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
In contrast, there are no default deal properties which change on a deal when its company associations change, hence
hs_lastmodifieddate
does not change.If you would like a deal's company association changes to make it appear via this endpoint, I have a workaround for you. With your subscription, you have access to calculated properties, so you could create a custom calculated property which reflects the count of the company property
Company ID
. Since this custom calcualted property will update whenever a company is associated or disassociated, it will also causehs_lastmodifieddate
to change and appear via the Get recently modified deals endpoint.See the GIF below for how to create such a custom calculated property.