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).
Jul 30, 2020 1:55 PM
I am trying to get all deals updated after a specific date building an incremental integration and not needing to refresh the entire deal's structure.
Is it possible to get the deals after specific date or any criteria?
Thanks in advance
Solved! Go to Solution.
Jul 31, 2020 6:05 AM - edited Jul 31, 2020 6:06 AM
Hey @dja
Your best bet would be to work with our CRM Search API searching for Deals with a create_date
after a certain timestamp or, you can use the hs_lastmodifiedDate
like this:
{ "propertyName" => "hs_lastmodifieddate", "operator" => "GTE", "value" => "YOUR_VALUE" }
This would result in a request looking like this:
POST https://api.hubapi.com/crm/v3/objects/deals/search?hapikey={{hapikey}} Payload: { "filterGroups":[ { "filters":[ { "propertyName": "hs_lastmodifieddate", "operator": "GTE", "value": "1584748800000" (This is 30 days ago, from now as of posting, in milliseconds) } ] } ] }
I hope this helps!
Jul 31, 2020 6:05 AM - edited Jul 31, 2020 6:06 AM
Hey @dja
Your best bet would be to work with our CRM Search API searching for Deals with a create_date
after a certain timestamp or, you can use the hs_lastmodifiedDate
like this:
{ "propertyName" => "hs_lastmodifieddate", "operator" => "GTE", "value" => "YOUR_VALUE" }
This would result in a request looking like this:
POST https://api.hubapi.com/crm/v3/objects/deals/search?hapikey={{hapikey}} Payload: { "filterGroups":[ { "filters":[ { "propertyName": "hs_lastmodifieddate", "operator": "GTE", "value": "1584748800000" (This is 30 days ago, from now as of posting, in milliseconds) } ] } ] }
I hope this helps!
Aug 1, 2020 8:17 AM