populate-hubspot-companies-with-id
Gettin started
- Install the package
npm i populate-hubspot-companies-with-id
- How to use it in your file (ex: paste it in an index.js file and then run node index.js):
const { populateHubspotCompaniesWithId } = require('populate-hubspot-companies-with-id');
const asyncFunction = async () => {
const results = await populateHubspotCompaniesWithId(hubspotApiKey, [
{ companyName: 'test1' },
{ companyName: 'test2', randomProp: 'hello' },
]);
};
asyncFunction();
- Additional information:
- this package fetches company information from HubSpot based on the company names you provide and adds companyId prop to the result
Built with
Company
IP Pilot: