How to retrieve, using api, all contacts of a company?
SOLVE
I found this working solution. I am using js sdk
TDLR;
I am calling hubspotClient.crm.contacts.batchApi.read method passing an array of objects, where each object has a single "id" field which is the contact id
How to retrieve, using api, all contacts of a company?
SOLVE
I found this working solution. I am using js sdk
TDLR;
I am calling hubspotClient.crm.contacts.batchApi.read method passing an array of objects, where each object has a single "id" field which is the contact id
How to retrieve, using api, all contacts of a company?
SOLVE
Hi Mirko,
You would want to make an additonal API call using the IDs in the results Object. I would recommed running the follwing ( don't forget to install axios):