"Create company in Hubspot" that generates a company in Hubspot based on information from your database.
Requirements
- An admin backend running on forest-express-sequelize
- superagent npm package
- a Hubspot account
How it works
Directory: /models
This directory contains thecompanies.js file where the collection is declared.
Directory: /routes
This directory contains thecompanies.js file where the smart action logic is implemented.
In this logic a Hubspot company instance is created through a /post create company call to the Hubspot API.
The Hubspot API key is defined in the
.env file and requested through the expression process.env.HUBSPOT_API.