Connect Reverse ETL Source to HubSpot

Configure a Reverse ETL source with your HubSpot destination.

This guide takes you through the steps to connect a Reverse ETL source to the HubSpot destination. It also takes you through the required scopes, predefined identifiers, and creating the association between the object records.

The below steps assume that you have already set up a Reverse ETL source and configured the connection settings.

success
You can connect multiple Reverse ETL sources to the HubSpot destination.

Required scopes

If you’re connecting a Reverse ETL source to HubSpot that uses private app access token for authentication, make sure your access token has the following scopes:

crm.lists.read
crm.objects.contacts.read
crm.objects.contacts.write
crm.schemas.custom.read
crm.objects.custom.read
crm.objects.custom.write
crm.schemas.custom.write
crm.objects.companies.write
crm.schemas.contacts.read
crm.lists.write
crm.objects.companies.read
crm.objects.deals.read
crm.objects.deals.write
crm.schemas.companies.read
crm.schemas.companies.write
crm.schemas.contacts.write
crm.schemas.deals.read
crm.schemas.deals.write
crm.objects.owners.read
crm.objects.quotes.write
crm.objects.quotes.read
crm.schemas.quotes.read
crm.objects.line_items.read
crm.objects.line_items.write
crm.schemas.line_items.read

See the HubSpot documentation for more information on adding the above scopes.

Data mapping

Follow these steps to define the data mapping settings:

Predefined identifiers

While connecting a Reverse ETL source with HubSpot using Visual Data Mapper, choose a warehouse column and HubSpot field to map your records in the Choose identifier section:

HubSpot connection settings

If you select a standard HubSpot Object, the Destination fields dropdown displays the predefined unique identifiers along with any other unique field of the object.

The following table lists the predefined identifiers corresponding to the standard HubSpot objects:

info

Note that:

  • These fields are visible only when the Create associations between object records dashboard setting is toggled off.
  • The values of unique identifiers are case-sensitive and should be sent exactly as they are present in HubSpot.
Standard HubSpot objectPredefined unique identifiers
CompanyCompany Domain Name
ContactEmail
DealDeal Name
Line ItemName
QuoteQuote number

If you select a custom HubSpot Object, only the unique fields of the object are displayed in the Destination fields dropdown.

Create association between object records

Note that:

  • You can create an association between the HubSpot object records while connecting your HubSpot destination to a Reverse ETL source using the Visual Data Mapper feature.
  • You must create two separate connections in the RudderStack dashboard using the Reverse ETL sources and HubSpot destination as shown:
HubSpot create associations

Workflow

  • The first connection pushes data into the HubSpot object, for example, a company object.
  • The second connection creates an association between the object records. For example, associating the company and contact objects.

Steps to create association

  1. Add a Reverse ETL source and connect the HubSpot destination to it. While configuring the destination, make sure to toggle on the Create associations between object record setting.
  2. In the Data mapping settings, select the Object where you want to sync the data.
  3. In the next dropdown, select the HubSpot object with which you want to associate the above-mentioned object.
  4. Based on the object selections, the relevant associations (from HubSpot account) are populated in the Association dropdown. Select the required association.
  5. Specify the Sync mode.
  6. In the Choose identifier section, select a warehouse column and HubSpot destination field to map your records. You can choose any destination field from the dropdown that acts as a unique identifier.
  7. Choose a warehouse column each for From Record ID and To Record ID fields which act as Hubspot’s unique ID to identify an object.
info

From Record ID and To Record ID are the column names of the two objects you want to associate.

For example, if you want to associate a company and a contact, the From Record ID should be a Company Id and To Record ID should be a Contact Id.

Similarly, you can create more such associations between the object records.


Questions? Contact us by email or on Slack