Aug 10, 2022 9:33 AM - edited Aug 11, 2022 6:12 AM
We are a marketing service company aggregating datas from differents marketing channels for our client. Hubspot is one of this channel.
I would like to be able to retrieve contact/company associations. No issue doing that.
After inital setup, I would like to be able able tor etrieve on a daily basis new/modified associations. For doing so, I have setup a 2 steps workflow:
1) I retreive newly updated/created contacts ussing this endpoint: get_recently_updated_contacts
2) I retrieve associations for the contacts updated in the last 24 hours using this endpoint: get-associations
We run our script in AWS Lambda. Lambda has a limited running time of 900 seconds.
As hubpost API reqsuests rate limit is 10/seconds, I got an issue when more than around 8000 contacts were updated in the last 24 hours.
Questions:
- Am I using the right workflow ?
- Is there a way to retrieve newly created/deleted associations ?
- Is there a way to retrieve contacts for which a specific property has been updated ? (The association one in this case)
- Do I have to change job as I'm too bad as a developper ?
Thanks for your answers.
Solved! Go to Solution.
Aug 25, 2022 6:36 PM
@Youpsla consider these two options
1) Polling more frequently, meaning reduce those 24hs window
2) Stop using polling and consider using the Webhooks API (subscribe to events happening)
![]() | Martin Angeletti HubSpot Consultant | Technical and Operational Specialist |
![]() | Did my post help answer your question? Help the community: mark this as a solution. |
Aug 25, 2022 6:36 PM
@Youpsla consider these two options
1) Polling more frequently, meaning reduce those 24hs window
2) Stop using polling and consider using the Webhooks API (subscribe to events happening)
![]() | Martin Angeletti HubSpot Consultant | Technical and Operational Specialist |
![]() | Did my post help answer your question? Help the community: mark this as a solution. |
Aug 10, 2022 7:50 PM
Hey, @Youpsla 👋 Welcome to the community! Let's see if we can get the conversation going. @jpsanchez @DanielSanchez @mangelet do you have any thoughts for @Youpsla?
Best,
Jaycee