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).
May 14, 2021 12:56 PM - edited May 14, 2021 2:56 PM
Hello experts,
My use case is to Get all contacts that were created every 5 mins and return the contacts and their associated Deals properties. I can get all Contact properties, but I wonder how to get all Deals properties that are associated with those newly created contacts. So is this correct? 1. Make an API call first to associate Contacts and Deals. 2. Make another call to get the newly created Contacts and their associate Deals. What is the second step request should look like? I used the Search Contact API but what should be the filers?
Thanks,
Yvonne
Solved! Go to Solution.
May 17, 2021 11:33 AM - edited May 17, 2021 11:34 AM
Hi @YFeng
Unfortunately, the Search CRM endpoint does not support the "associations" parameter in the query string (not all HubSpot API endpoints support the same query string parameters - you'll need to check each endpoint individually using HubSpot API docs). As such, you'll probably have to perform a couple more API calls than you were originally expecting. Based on how you've described your case, here's an option you may like to pursue (assuming the Contact records are already associated with the relevant Deal records):
I hope that's helpful. Let me know if you have any follow up questions.
All the best,
Zach
May 17, 2021 11:33 AM - edited May 17, 2021 11:34 AM
Hi @YFeng
Unfortunately, the Search CRM endpoint does not support the "associations" parameter in the query string (not all HubSpot API endpoints support the same query string parameters - you'll need to check each endpoint individually using HubSpot API docs). As such, you'll probably have to perform a couple more API calls than you were originally expecting. Based on how you've described your case, here's an option you may like to pursue (assuming the Contact records are already associated with the relevant Deal records):
I hope that's helpful. Let me know if you have any follow up questions.
All the best,
Zach
May 14, 2021 3:47 PM
@zaklein , any chance you could help out here?
![]() | Make sure to subscribe to our YouTube channel where you can find the HubSpot Community Developer Show |