Hi! I've been creating a code to make automatic associations between Deals and Contacts, it works. However, I can only get up to 100 contacts, if I increase the limit the API's response is 400. Does anyone know if it is possible to retrieve every Contact? We have more than 400 000 contacts and we need to associate deals to them.
Your issue of encountering a 400 error beyond 100 contacts arises due to HubSpot’s limitation on batch operations. However, you have two viable methods to work around this limitation:
Utilize HubSpot's new Export API to export all your contacts at once. Once the export is complete, you'll receive a URL to download the exported file. Download this file and save it locally. In your code, implement file reading functionality using libraries such as fs in Node.js to read the exported data from the saved file. Process the read data to associate deals to the contacts as per your existing logic.
Each method caters to the retrieval and processing of over 400,000 contacts, aiding in the automatic association between Deals and Contacts as per your requirement.