SSIS stands for SQL Server Integration Services. It is a solution for building data integrations and workflow applications that integrate with SQL Server databases. As data integration processes increase in importance, organizations are looking for ways to simplify integration and manage workflows.

In this article, we'll walk you through how to design a data flow that adds new HubSpot contacts to a MailChimp list using CData SSIS Components for HubSpot and MailChimp.

Connecting to HubSpot and MailChimp

The email address of the HubSpot contact and the ID of the MailChimp list are required when adding HubSpot contacts to a MailChimp list. To get the information you need, use a CData MailChimp Source component and a CData HubSpot Source component.

Getting the MailChimp List ID

Add a CData MailChimp Source component to retrieve the ID of the MailChimp list for the new email addresses.

MailChimp uses your account APIKey or OAuth to authenticate the application. The APIKey is generated from the account settings in MailChimp. For OAuth authentication, obtain the OAuthClientId, OAuthClientSecret, and CallbackURL by registering an app with MailChimp.

See the "Getting Started" chapter in the help documentation for a guide to using OAuth.

Getting New HubSpot Contacts

Add a CData HubSpot Source component to collect recently added contacts to be added to the MailChimp list.

HubSpot uses the OAuth authentication standard. You can use the embedded OAuthClientId, OAuthClientSecret, and CallbackURL or you can obtain your own by registering an App with HubSpot.

See the "Getting Started" chapter of the help documentation for a guide to using OAuth.

"SELECT [Email], '" + @[User::Status] + "' AS [Status] FROM [Contacts] WHERE Date > '" + (DT_WSTR, 50) DATEADD("day", -30, GETDATE()) + "'“

Combining HubSpot and MailChimp Data

After connecting to and retrieving data from HubSpot and MailChimp, combine the data in a Union All component before adding the contacts to a MailChimp list.

Output Column Name → ListId | Email | Status

Union All Input 1 (MailChimp) → Id | Ignore | Ignore

Union All Input 1 (HubSpot) → Ignore | Email | Status

Adding New MailChimp List Members

With the data combined and retrieved, you are ready to add new HubSpot contacts to the MailChimp list.

Input Column → Email | Status | ListId

Destination Column → Email Address | ListId

More Information

The SSIS Components simplify data integration and minimize the need for custom code by providing standard relational interfaces. Companies choose the CData SSIS Components, to obtain standards-based, SQL-like access to data in SQL SSIS projects.

While this article focused mainly on adding new HubSpot contacts to MailChimp lists, the principles can be applied to any entities from the 100+ SaaS, Big Data, or NoSQL sources that CData SSIS Components support.