Deal hs_lastmodifieddate update when changes in associated objects

Hi!

I’m working on a project that integrates with Hubspot, where we need to poll Hubspot to find deals changes regularly. With a deal change, we also mean changes to corresponding contacts and line items.

My initial understanding was that changes in contacts and line items would not update the change dates on the deal object, but when I checked it, it seems to do just that. Even adding a note on a contact associated with a deal, the hs_lastmodifieddate and updatedAt on the deal object got updated. This is great, but when I asked our Hubspot team, they speculate that this feature comes from the “old API” and could therefore change in the future. Is this the case, or is it safe for us to use this feature?

André

Hi @bonski ,

By old API, are you referencing the v1 legacy APIs?

Also, these properties act the same way when using the v3 (https://api.hubapi.com/crm/v3/objects/deals/:dealid) so you should be good to go.

Yes, I mean the legacy API.
Thanks for your reply.
André

If all you are looking for are these two property values, I would recommend adopting the V3 endpoints

Thanks!

We do use the V3 endpoints, but we were told that the “updatedAt and hs_lastmodifieddate” would not be updated by changes in associated objects. When we found out that they do, the same persons were surprised and speculated that it could be a “side effect” of the legacy API is used behind the scenes.

André

Nope, this was in the design. No side effect from this medicine :upside_down_face: