- 07 Dec 2022
- Print
- DarkLight
- PDF
Data Destination - HubSpot
- Updated on 07 Dec 2022
- Print
- DarkLight
- PDF
This is a machine-translated version of the original Japanese article.
Please understand that some of the information contained on this page may be inaccurate.
summary
This is the help page for setting up data transfer to HubSpot.
Supported Protocols
- Data Transfer (Embulk)
constraint
- Only one object can be transferred.
Setting items
STEP1 Basic settings
Item | namerequireddefault | valuecontent | |
---|---|---|---|
HubSpot connection information | Yes | - | From the connection information registered in advance, select the one that has the necessary permissions for this transfer setting. Only connection information created with OAuth 2.0 as the authentication method can be selected. For more information on how to set up connection information, see Connection information in HubSpot. |
Update to | Yes | - |
|
Object Type | Yes | - | Specify the name of the object where the report data is stored.
|
Transfer Mode | Yes | UPSERT | Specify the method by which data is transferred to the object.
|
UPSERT key | Yes | hs_object_id | Enter when you select UPSERT in transfer mode. Enter the name of the property that you want to treat as a merge key (primary key) with unique values. Note that the default values are hs_object_id properties with unique values set by HubSpot. |
If you select subscription as the object type, the transfer is performed in UPSERT. Also, the UPSERT key isemail
automatically specified as andsubscription_id
.
For more information, see Renewing your subscription below.
If you want to set a property to the UPSERT key
hs_object_id
, or any other property of the contact objectemail
if you want to set it as a UPSERT key, you'll need to do so in HubSpot beforehand. The following describes the configuration procedure.
- Log in to HubSpot and click your HubSpot account
- At the top right of the screen, click the settings icon in the red frame.
- Click Properties
- Select the object and click the property you want to use as the UPSERT key
- Click the Rules tab
- For this property, enable Require non-duplicate values and click Save
Renew your subscription
Usage API
https://developers.hubspot.com/docs/api/marketing-api/subscriptions-preferences
schema
All of the following columns must be included in the transferred data:
Column | description | sample value |
---|---|---|
E-mail address | hoge@example.com | |
subscription_id | Subscription ID Learn how to find your subscription ID. | 12232 |
is_subscribed | Subscription Status | Make sure it is set to boolean typein STEP2 of trocco.
|
How to find your subscription ID
- In HubSpot, select Settings→ Data Management→ Properties.
- Select "Export all properties" at the top right of the properties screen and click "Export" in the modal to download the Excel/CSV file.
- Find items starting with in the "CONTACT" sheet
hs_email_optout_
of the Excel/CSV file. hs_email_optout_111
111
, where is the subscription ID.
constraint
- If you have unsubscribed, you will not be able to subscribe to Trocco. Update from the top of the HubSpot screen.
- Updating with the same subscription status will result in an error.
- Example: Unsubscribing to unsubscribe will result in an error.