How long does it take hubspot to create the object? I have a script thats meant to sync a bunch of contacts and associate them to a custom object, but ive noticed im some cases the search doesnt come back with any results if the previous contact was just created(this is an example of a duplicate contact basically). So in theory should I be waiting a set amount of time between each call?
Hello @JUrena
I didn’t get full clarity on what issue you are facing, however, it takes time for HubSpot to create an object can vary depending on various factors such as the amount of data being created and the load on the HubSpot servers at the time of the creation. However, in most cases, the creation of a single contact or custom object should be instantaneous or take just a few seconds.
That being said, it’s possible that the search doesn’t come back with any results immediately after a contact is created due to caching or indexing delays. In such cases, waiting a few seconds or a minute between each call may help ensure that the search returns accurate and up-to-date results.
If you’re experiencing issues with duplicate contacts being created, you may also want to consider implementing a deduplication process that checks for existing contacts before creating new ones. HubSpot provides various deduplication tools and settings that can help prevent duplicate contacts, such as merging duplicate records and enabling duplicate detection rules.
Overall, it’s always a good practice to implement error handling and retry mechanisms in your scripts to handle any unexpected issues or delays that may occur during the synchronization process.