We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Feb 4, 2019 3:37 AM - edited Feb 4, 2019 4:02 AM
Hi, I am using get recently modified companies api (/companies/v2/companies/recent/modified), and I would like to get the history of the property values.
in get recently modified deals api the I can send includePropertyVersions=true and history will return for all properties.
in get recently modified contacts api I can send propertyMode=value_and_history to get the history.
in get all companies I can send propertiesWithHistory to the properties I want to get the history for.
any way to get that in recent companies?
Solved! Go to Solution.
Feb 5, 2019 8:26 AM
Unfortunately, the Get recently modified companies endpoint does not return property histories. I recognize this is a painful inconsistency in our APIs and have passed along feedback to the team.
At this time, the best alternative is to query the Get all companies endpoint and include the propertiesWithHistory
parameter for each of the properties you wish to analyze.
To filter the list of all companies, you could sort by the hs_lastmodifieddate
property and look for values which are greater (more recent) than a specific millisecond timestamp.
Isaac TakushiAssociate Certification Manager |
Feb 5, 2019 8:26 AM
Unfortunately, the Get recently modified companies endpoint does not return property histories. I recognize this is a painful inconsistency in our APIs and have passed along feedback to the team.
At this time, the best alternative is to query the Get all companies endpoint and include the propertiesWithHistory
parameter for each of the properties you wish to analyze.
To filter the list of all companies, you could sort by the hs_lastmodifieddate
property and look for values which are greater (more recent) than a specific millisecond timestamp.
Isaac TakushiAssociate Certification Manager |
Jul 5, 2019 2:56 AM
What kind of answer should this be? We are using the recent companies endpoint to keep track of newly created/updated companies to not collect all companies each time.
Why is every single api working differently here? Honestly, if I get the modified companies, I do expect the same output as I would query them from the "all companies" endpoint.
This bs cause a big bug in our infrastructure as we do overwrite domains with only the single one that we get from the recent companies.
What a freaking mess.
Feb 4, 2019 10:09 AM
Hey. I am facing the exact same problem at the moment. Would appriciate some help on that.