APIs & Integrations

Youpsla
Member

Retrieve new associations between contacts and company

SOLVE

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.

0 Upvotes
1 Accepted solution
mangelet
Solution
Guide | Platinum Partner
Guide | Platinum Partner

Retrieve new associations between contacts and company

SOLVE

@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 Veteran (12+ years)

Worried about messing up your HubSpot? I've got your back.

Join the thousands of people who have discovered how to avoid problems with simple tricks and have started to dominate HubSpot (and not be dominated).

️ Don't get left behind.

→ Click the subscribe button and scroll down to find the opt-in box.

Subscribe

Did I help answer your question? Mark this as a solution.

View solution in original post

2 Replies 2
mangelet
Solution
Guide | Platinum Partner
Guide | Platinum Partner

Retrieve new associations between contacts and company

SOLVE

@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 Veteran (12+ years)

Worried about messing up your HubSpot? I've got your back.

Join the thousands of people who have discovered how to avoid problems with simple tricks and have started to dominate HubSpot (and not be dominated).

️ Don't get left behind.

→ Click the subscribe button and scroll down to find the opt-in box.

Subscribe

Did I help answer your question? Mark this as a solution.

Jaycee_Lewis
Community Manager
Community Manager

Retrieve new associations between contacts and company

SOLVE

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

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes