I am encountering the following issue: I have users and deals on my side (not yet on HubSpot) and I want to create them in HubSpot using the API.
One contact can be linked to a deal, but for that I need the vid (HubSpot id) of the contact, so here is what I do:
1 - Batch creating all the users using their email
2 - Getting all the users newly created (because I need their vid and the batch create does not return them)
3 - Creating the deals with their associated users thanks to the previously get vids
The issue I am having is that on step 2, contacts are not finished being created on HubSpot. It takes up to 30s with 4 contacts (didn't try more). So if I immediately create then get, the get returns nothing. A sleep of 30s solves the issue but that's not a good solution.
I wondered if I am doing something wrong, or if this is a known issue, and if there is a solution out there?