Set up a connection in Airbyte Cloud to copy data from HubSpot to Snowflake.
HubSpot is a cloud-based customer relationship management (CRM) platform that helps organizations manage marketing, sales, service, CMS, and operations. At a high-level, HubSpot helps your business to attract, convert, close, and finally to “delight” your customers.
Moving HubSpot data to Snowflake may be part of an overall data integration strategy, which will provide your organization with:
In addition to the benefits listed above, Snowflake is designed for storing massive amounts of data. Therefore Snowflake may be used for HubSpot backups, or for archiving historical HubSpot data as required for compliance or regulatory requirements.
Airbyte makes the process of copying data from HubSpot easy – simply create a source connector to the HubSpot API, a destination connector to the Snowflake API, and a connection between them. Then specify a schedule for synchronizing data from HubSpot to Snowflake.
This tutorial will go through the steps required to set up a connection in Airbyte Cloud which will copy data from HubSpot to Snowflake. Because of the similarity between Airbyte Cloud and Airbyte Open-Source, the instructions should apply to either platform.
Let's get started!
Airbyte cloud will be used to replicate your data from HubSpot to Snowflake. You will need the following:
In this tutorial, we will use Airbyte to copy Contacts from HubSpot to Snowflake. Below is an example of a Hubspot contacts page, which shows contacts that will be replicated into Snowflake by Airbyte.
To configure HubSpot as a data source, log in to Airbyte Cloud and create a new HubSpot source connection as shown below.
Then click on Authenticate your HubSpot account as follows:.
The sign-in page for HubSpot will appear.
Choose the HubSpot account that Airbyte will use to access your HubSpot data.
Follow the remaining prompts to connect your HubSpot app with Airbyte.
You will be redirected back to Airbyte Cloud. For the Start date, enter the date in YYYY-MM-DDTHH:mm:ssZ format. The data added on and after this date will be replicated. If this field is blank, Airbyte will replicate all data.
Ensure that you have a Snowflake account and then go to the Snowflake worksheet area. The worksheet area is the primary place to run scripts for creating and modifying resources. You will need to set up the destination database, user, role, and schema on Snowflake for the sync.
Airbyte provides a convenient script in the Snowflake destination connector documentation which you should copy into your Snowflake worksheet area. After you have copied the script into your Snowflake worksheet select ‘All queries’ and run the script by clicking on the run button as shown below.
Once the script has successfully executed, you should see the following message:
Now that Snowflake is set up, configure a Snowflake destination connector in Airbyte as shown below.
Enter the host and the other fields with the values that you defined in the Snowflake script that you pasted into the worksheet earlier in this Tutorial. Under the Authorization method, select the Username and Password option and enter the password you set in the script. Once you’ve added your details, click on Set up destination.
Once the source and destination are configured, create a new connection that uses the new HubSpot source eand the new Snowflake destination, and define the connection settings. Set the replication frequency for how often you want Airbyte to copy your data.
You can also select the data sets that you want to copy. In the image below we select the Contacts data and set the Sync mode to Incremental | Append.
You can also choose between using Raw Data or Basic normalization with normalization set by default. Once configured, click on the Set up connection button.
After creating a new connection, a sync should start. You can also start a sync at any time by clicking on Sync now.
Once the sync is complete, you can view the tables created by Airbyte Cloud in Snowflake. In this example, you can see the Contacts table that has been copied by Airbyte.
You can also click on the table to view the format of the columns created by Aibyte to map data from the source.
You can also test out the incremental sync by adding some more contacts through HubSpot. In this example, 50 more entries were added.
Running another sync will copy the new rows to Snowflake.
You can view the updated row in the Snowflake tables.
This tutorial has demonstrated how to set up a connection between HubSpot and Snowflake using Airbyte Cloud. Once your data is in Snowflake, you can combine it with data from other sources to drive your analytics capabilities to the next level!
To summarize, in this tutorial you have learned how to:
If you have enjoyed this tutorial, you may be interested in other Airbyte tutorials, or in Airbyte’s blog. You can also join the conversation on our community Slack Channel, participate in discussions on Airbyte’s discourse, or sign up for our newsletter. Furthermore, if you want to use Airbyte to replicate your HubSpot data to Snowflake, try out our fully managed solution Airbyte Cloud for free!
Learn how to easily build a data ingestion pipeline to load business data from Mailchimp to Snowflake.
Learn how to load Facebook Ads data to BigQuery using Airbyte Cloud.
Learn how to move marketing data from LinkedIn Ads to BigQuery for improved analytics, reporting, and insights.