- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Companies(Contacts and Deals) - Recently created/modified
SOLVEApr 20, 2020 6:36 AM
How to get recently created or modified companies/contacts/deals using the new version(v3)?
Previously, they were available under below endpoints for the companies;
GET /companies/v2/companies/recent/modified
GET /companies/v2/companies/recent/created
Appreciate help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Accepted Solutions
Apr 20, 2020 7:43 AM - edited Apr 20, 2020 7:44 AM
Hi @sshaikh
These endpoints should still be functioning for you as we have not created these specific endpoints in the new v3.
However, if you'd like, we can work with the new CRM Search to filter with same results. If we take a look at the Get recently created companies endpoint, this endpoint will only return records created in the last 30 days, or the 10k most recently created records.
With this in mind, we can build out our request using the new CRM Search and the operators to ensure we get the same results. This would look something like this:
POST https://api.hubapi.com/crm/v3/objects/companies/search?hapikey={{hapikey}} Payload: { "filterGroups":[ { "filters":[ { "propertyName": "createdate", "operator": "LTE", "value": "1584748800000" (This is 30 days ago, from now as of posting, in milliseconds) } ] } ] }'
This would then return all Companies that have been created less than 30 days ago. For more information on this new endpoint and the operators that can be used to query your data, head over to the documentation here.
I hope this helps!
Matthew WillsonHubSpot Developer Support |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content