[Integration Guideline] Hubspot

[Integration Guideline] Hubspot

The integration can be done via webhook in HubSpot workflows.

The webhooks in workflows send or retrieve information between HubSpot and other external tools. There are a variety of uses for webhooks, examples of popular use cases for webhooks include:

  • Posting HubSpot contact data to another system, such as a CRM, when that contact fills out a particular form on your site.
  • Sending deal data to an external shipment-handling system to create a purchase order.
  • Retrieving data from another system to update your HubSpot records. 

In this article, we will focus on passing data to external systems via webhook.

To make sure you can use the webhook and workflow features, you must subscribe to the following modules:

  • Marketing Hub Professional
  • Operations Hub Professional

I strongly suggest users subscribe to both trials for free, so that users can make sure their integrations work well.

1. In your HubSpot account, go to Automations > Workflows.
Article content
2. Click "Create workflow" at the top right corner.
Article content
3. Click "Contact-based", as you are passing contact data to external systems. Click "Next".
Article content
4. In the workflow editor, click the + plus icon to add an action.
Article content

Notes:

  • To watch any changes in contact data, select "When an event occurs".

Article content

  • Select "Property value changed" under "CRM". For criteria, select "Last Modified Date" "is known".
  • By watching the changes in the last modified date, any property changes will modify the last modified date, and thus trigger the workflow to pass the row of data to your external destinations. "Is known" here is equal to "has changed".
  • However, "is known" does not cover events when a field has its value emptied. That means if your criteria cover a specific property field only. You have to edit as "ABC is known or ABC is unknown". So that the workflow is triggered when the field is emptied.

Article content


5. In the Data ops section, select Send a webhook.
Article content


6.. Click the Method dropdown menu and select POST
Article content


7. Enter the webhook URL.
Article content

Notes:

  • If your webhook requires authentication signatures, you can click the Authentication type dropdown menu. Then, select API key
  • You cannot configure the request header. That means you cannot add more than one authorization key into the header. Even you have only one auth key needed, make sure the name of the key is not with hyphen. Hyphen is not allowed in the key name

Article content

  • For the detailed authentication methods, see here.

8a. To include all properties, select Include all [object] properties
Article content


8b. To include only specific properties:  Select Customize request body.
Article content


  • To customize the request body using a HubSpot property, enter the desired Key and select the appropriate property from the available options. To add another property, click the "Add property" button.
  • To customize the request body using a static field, enter the Key and the corresponding Value. To add an additional static property, click the "Add static value" button.
  • To remove a property or static value, click the delete (trash can) icon next to the item you wish to remove.

9. Click "Save"
Article content

Notes:

  • To test your webhook, see here.
  • To trigger workflows from webhooks, see here.

References:

To view or add a comment, sign in

More articles by Charles Lee

Insights from the community

Others also viewed

Explore topics