Setting Up HubSpot Integration in Your Platform
This guide will walk you through embedding HubSpot & managing HubSpot contact data directly within your platform.
Last updated
This guide will walk you through embedding HubSpot & managing HubSpot contact data directly within your platform.
Last updated
After logging in to your Fastn account, go to the Widgets page, and click Add Widget:
Search for HubSpot in Fastn Connectors and connect it to your HubSpot account.
This will open the create a widget page with HubSpot's info pre-filled. Next add the Activate HubSpot Exports flow as an activate action as shown below and update the widget.
This widget embeds a flow that is created in the following construct:
This will be called by the scheduler created by Activate. This will move your data from HubSpot to destination.
Start by logging in to your Fastn workspace and navigate to the Flows section from the left-hand menu.
Click on "Add New Flow."
Give your flow a name and select API as the flow type.
Click "Create" to proceed.
Inside your new flow, locate the start step.
Search for "HubSpot" in the connector list.
Add the HubSpot connector to your start step.
Choose the function you want to perform—e.g., getContacts to fetch HubSpot contacts.
Click "Next" to proceed.
In the Connect Account step, sign in with your HubSpot credentials.
Once authenticated, click "Next" again.
Configure and save your connection details.
Click "Run Test" to verify the integration.
Once the test passes, your HubSpot account is now successfully connected.
After successfully connecting your HubSpot account, attach a Loop step to process each contact individually.
In the loop, set the data source to your desired output—in this case, use {{steps.getContacts.output.results}} to loop through the list of contacts fetched from HubSpot.
Enter the loop, and inside it:
Add a Database connector (e.g., Fastn database). Insert a Query in it that:
Creates a table if it doesn't already exist.
Inserts each contact into the table during the loop iteration.
Once the loop logic is complete, exit the loop.
Attach a Success Message step outside the loop to confirm the flow ran successfully without any errors.
Navigate to your Fastn database.
Open the table you created.
You should now see all your HubSpot contact data populated.
This flow will allow you to fetch and manage HubSpot contact data directly within your platform.
Next, you’ll add buttons like "Connect" and "Disconnect" for Activation or Deactivation of your HubSpot connection.
Add the following flows in your actions:
This will create your schedulers / webhooks + import your APIs from templates
This will delete your schedulers / Webhooks.
After you update these actions into your widget, you can see the buttons on your connectors page.
You can now easily activate and deactivate the connection with your HubSpot portal.