Display Hubspot companies

This example shows you how to create a smart collection to list the companies of your Hubspot account.

Requirements

How it works

Directory: /forest

This directory contains the hubspot-companies.js file where the collection is declared.

Directory: /routes

This directory contains the hubspot-companies.js file where the serializer for the collection and logic to get records is defined.

Companies information are obtained by making a get all companiesarrow-up-right call to the Hubspot API.

circle-info

The Hubspot API key is defined in the .env file and requested through the expression process.env.HUBSPOT_API.

Last updated

Was this helpful?