get-top-countries-of-reps-hubspot
Gettin started
- Install the package
npm i get-top-countries-of-reps-hubspot
- How to use it in your file (ex: paste it in an index.js file and then run node index.js):
const { getTopCountriesOfRepsHubspot } = require('get-top-countries-of-reps-hubspot');
getTopCountriesOfRepsHubspot({
hubspotApiKey: 'your key',
ippqlKey: 'your key',
ipqqlHost: 'your host',
});
or if you want to test it only on a few companies:
const { getTopCountriesOfRepsHubspot } = require('get-top-countries-of-reps-hubspot');
getTopCountriesOfRepsHubspot({
hubspotApiKey: 'your key',
ippqlKey: 'your key',
ipqqlHost: 'your host',
providedHsCompanies: [{ companyName: 'lucas', targets: ['LUCAS & LUCAS (_url: 6f5167057533c40de2bb072a771ca9c7)'] }],
});
- Additional information:
- every company in your Hubspot account should have a property with internal name "ip_pilot_name" containing the corresponding company names found in IP Pilot's database (ex: 'Lucas (lf_url: 1234485923829)') - you could use our other package in order to easily fill up that property for all your Hubspot companies -> https://www.npmjs.com/package/ip-pilot-hubspot-company-matching
- for every url in "IP Pilot Name" property the related top 3 countries of representatives will be searched in IP Pilot's database
- you will need to have a property in Hubspot with the following internal name -> "top_3_countries_of_representatives"
- the results will be stored in Hubspot under the property with internal name "top_3_countries_of_representatives"
- if for testing purposes you don't want affect all your Hubspot companies you can provide a limited list of companies via providedHsCompanies parameter as shown in point 2. The property targets are the list of company names you wish to look up and find its top countries of representatives
Built with
Company
IP Pilot: