I’m trying to synchronise a simple database of companies and deals stored on a server with those on HubSpot. I have created tasks to retrieve the list of companies and deals stored at HubSpot, determined what needs updating at HubSpot, and created batch requests to send the changes to HubSpot. All good so far, but I’ve hit a snag when it comes to associating these two object types. I understand how to retrieve a list of companies attached to a specific deal from its id, i.e. /crm/v4/objects/deals/{id}/associations/companies, but I’m wanting to get a list of all associations between all deals and all companies, and retrieve a list of the linked object ids. I’d rather not have to iterate through my list of deals and send individual requests. This page - Accounts Dashboard | HubSpot - gives an example of crm/v4/objects///associations/?limit=500, but when I send this request I get a Cloudflare security error. What am I missing? Is what I want to do even possible? I am using a private app.
Are you trying to create an integration to keep two systems in sync as changes happen or are you trying to do a one-time sync of all your data?
I am indeed trying to keep two systems in sync but unfortunately I don’t have the luxury of intercepting record changes in the database as they happen. I have to try to figure out what changes need to be sent to HubSpot on a regular basis.