Settings for HubSpot
This topic describes how to configure a new HubSpot connection in DataSync.
To configure the connection:
-
In DataSync, create a new source connection for HubSpot.
-
Fill out the fields in the New Connection dialog box as described below.
-
Click Save.
Connection Properties | Description |
---|---|
Description | Enter a name for the source connection. |
Connection Timeout |
Length of time in seconds to wait for a connection to the server before terminating the attempt and generating an error. |
Verbosity |
The verbosity level that determines the amount of detail included in the log file. Verbosity levels range from 1 to 5; the default is 3. |
Enable Pooling |
This parameter enables connection pooling. When it is selected, the three following properties are displayed:
|
Additional Connection Properties | Description |
---|---|
OAuthAccessToken |
Enter the value of your application's access token. |
OAuthOptionalScopes |
This is a comma-separated set of optional scopes that give you permissions to your HubSpot account. Copy and paste the following text: "automation,business-intelligence,crm.lists.read,crm.lists.write,crm.lists.write,crm.objects.companies.write,crm.objects.contacts.read,crm.objects.contacts.write,crm.objects.deals.read,crm.objects.deals.write,crm.objects.owners.read,crm.schemas.companies.read,crm.schemas.companies.write,crm.schemas.contacts.read,crm.schemas.contacts.write,crm.schemas.deals.read,crm.schemas.deals.write,content,conversations.visitor_identification.tokens.create,crm.import,cms.source_code.read_write,e-commerce,files,forms,forms-uploaded-files,hubdb,integration-sync,oauth,sales-email-read,social,tickets,timeline,transactional-email" You can refine your scope based on the HubSpot documentation. |
AuthScheme | Enter your Private App Token. Refer to Connect Using a HubSpot Private App Token for steps on how to do this. |
Connect Using a HubSpot Private App Token
To connect using a Hubspot Private App Token, set the AuthScheme property to PrivateAppToken and OAuthAccessToken to the value of your application's access token.
You can generate a HubSpot Private App Token by following the steps below:
-
In your HubSpot account, click the settings icon in the main navigation bar.
-
In the left sidebar menu, navigate to Integrations > Private Apps.
-
Click Create private app.
-
On the Basic Info tab, configure the details of your application (name, logo, and description).
-
On the Scopes tab, select Read or Write for each scope you want your private application to be able to access. This determines the data the driver has access to retrieve. Refer to the OAuthRequiredScopes and OAuthOptionalScopes properties for recommended scopes to select.
-
After you are done configuring your application, click Create app in the top right.
-
Review the info about your application's access token, click Continue creating, and then Show token.
-
You can now set the retrieved token in the OAuthAccessToken property (OAuthAccessToken is used for Private App Access Tokens and OAuth Access Tokens).