Integrating 'Hubspot Lists' to Google Spreadsheets using Appsscript.
SOLVE
Hi Everyone,
I'm trying to integrate my only 'Hubspot Lists' to google spreadsheets. I want all the contacts from the 'Lists', by writing code in the AppsScript. Can anyone please help me with us. Thankyou.
Hope I gave you some guidance regarding this implementation, unfortunately I haven't worked heavily with the Apps Script so I don't know the ins and outs, but it seems straightforward so if you need further assistance regarding code, don't hesitate to write here with your progress and someone might be of help.
If my answer was helpful please mark it as a solution.
Integrating 'Hubspot Lists' to Google Spreadsheets using Appsscript.
SOLVE
Hi, @dennisedson , Hi @miljkovicmisa. thank you so much for the reply, this means a lot to me. By the way, i succeded with getting the 'Hubspot Lists' contacts into my 'Google spreadsheets' using Appsscript. Now i have one more challenge to do i.e. "I want to get all the 'Companies' contacts into Google spreadsheets using Appsscript". I have written a Appsscript code for this, but the problem is, if i try to run this code, it's kept on running without output. I'm attaching my code for the reference. Please, can you guys help me with this, like, where i'm making mistake. Thanking you. Below is the code, i'm running.
functiongetCompanies() {
varnumResults = 0;
// We are going to put all the date into that array, starting with the header of our sheet
vardata = newArray();
data.push(["vid","Company name"]);
// Hubspot only let's you get 100 contacts per API request, we need therefore to enable pagination
Hope I gave you some guidance regarding this implementation, unfortunately I haven't worked heavily with the Apps Script so I don't know the ins and outs, but it seems straightforward so if you need further assistance regarding code, don't hesitate to write here with your progress and someone might be of help.
If my answer was helpful please mark it as a solution.