Skip to content

Instantly share code, notes, and snippets.

View crtag's full-sized avatar

Alexey Novikov crtag

View GitHub Profile
@crtag
crtag / hubspot-workflow-create-company.js
Last active October 13, 2020 05:52
Hubspot workflow Node JS webhook to create a company record via API call.
// TODO: configure your own hubspot client
/**
* This webhook is triggered by Hubspot workflow and receives a full Hubspot contact object
* to create the company for. It does expect company name property, but will default
* company name to contact `${firstname} ${lastname} construct
*
*/
module.exports = async (req, res) => {