HubSpot
Get HubSpot App Token
You will need to enter a HubSpot app token when setting up a Cast Datasource for Cast.app to query your HubSpot objects. If you forgot your app token or never used one before, you can get a new app token by following the steps below:
- In your HubSpot account, click Settings > Integrations > Private Apps.
- Click “Create private app.”
- Enter a name for your app and select the scopes you need.
- Click “Create app.”
- Copy your access token from the app details page.
Creating a HubSpot Datasource
- Navigate to the Datasets screen in Cast.app designer by clicking on “Home” at the top of the screen and selecting “Datasets”.
- Click on “Add New Dataset”.
- Select “Add a Data Source” and choose “HubSpot” in the popup.
- On the datasource setup screen, enter your HubSpot access token that you got earlier and provide a descriptive name.
- Click on “Add Configuration”.
Creating Datasets from HubSpot Datasources
- After adding a datasource, locate the HubSpot datasource you just created. If you cannot see it, return to the Datasets screen by following Step 1 and 2 in the section above. “Creating a HubSpot Datasource”.
- Click on the Hubspot datasource that you created in the previous step.
- Query your Hubspot objects, assign a name to the dataset, and save.
Combine and Transform HubSpot Datasets
- Navigate to datasets page
- Click on Add New Dataset Button
- Select Query Datasets
-
Perform aggregations, transformations, and joins of your HubSpot data powered with SQL syntax.
For example, to get contacts with only their id and email properties use:
{ "table": "contacts" "properties": "email" }
or to get all the contacts and their properties use:
{ "table": "contacts" }
That’s it! You can replace
contacts
with any other objects you have including custom objects. The HubSpot datasource also supports associations, for example:{ "table": "contacts" "associations": "companies" "properties": "firstname" }
- Now that your query is set run the query by clicking the “Run” button.
- If the query is successful, give the dataset a unique name and save it.
Video showing
- Creating a HubSpot Dataset
- Creating datasets from HubSpot datasource
- Combining and Transforming the HubSpot Dataset
- Using the Dataset in a data-driven slide