Salesforce Marketing Cloud
Salesforce Marketing Cloud is a digital marketing platform that automates email marketing, social media, apps, websites, and more.
Salesforce Marketing Cloud integration replicates data using the Salesforce Marketing Cloud both REST API and SOAP API.
See the Schema section for a list of objects available for replication.Preparing for authentication
To access your data, you need to authenticate the connection with your account credentials.
Before you create connections in Qlik Talend Cloud, make sure you have the following:
- A Salesforce Professional, Corporate, or Enterprise license (required to use the Salesforce Marketing Cloud API).
- A Salesforce Marketing Cloud Administrator user, or a System Administrator user in Salesforce.
- An External Client App created in Salesforce. To integrate with Salesforce, external applications must use an External Client App (not a package).
The following instructions are available only in the Salesforce Lightning Experience menu. If you are using Salesforce Classic, switch to Salesforce Lightning Experience.
To retrieve your client ID and client secret:
- Switch to Salesforce Lightning Experience if you are using Salesforce Classic.
- Log into your Salesforce Marketing Cloud account.
- In Setup, navigate to Apps > App Manager, and then click New External Client App.
- Configure the app:
- Enter a name.
- Set Distribution State to Local.
- Under API (Enable OAuth Settings), select Enable OAuth and set OAuth Scopes to Full access.
- Under Flow Enablement, select Enable Client Credentials Flow.
- Click Create.
- Once the external app is created, navigate to Settings > OAuth Settings > Consumer Key and Secret.
- When prompted, verify your identity using one of your registered methods.
- Copy and paste your client ID and client secret into a secured file.
- Navigate to Policies > Edit > OAuth Policies, and then enable Enable Client Credentials Flow.
- In Run As (Username), enter your email, and then click Save.
To enable REST API access:
- Log into your Salesforce Marketing Cloud account.
- In Setup, navigate to Apps > External Client Apps > Settings.
- Enable Allow access to External Client App consumer secrets via REST API.
Creating the connection
For more information, see Connecting to SaaS applications.
- Fill in the required connection properties.
Provide a name for the connection in Connection name.
Select Open connection metadata to define metadata for the connection when it has been created.
Click Create.
| Setting | Description |
|---|---|
| Data gateway | Select a Data Movement gateway if required by your use case. Information note This field is not available with the Qlik Talend Cloud Starter subscription, as it does not support Data Movement gateway. If you have another subscription tier and do not want to use Data Movement gateway, select None. For information on the benefits of Data Movement gateway and use cases that require it, see Qlik Data Gateway - Data Movement. |
| Start Date | Enter the date, in the format MM/DD/YYYY, from which the data must be replicated from your source to your target. |
| Client ID | Client ID. |
| Client Secret | Client secret. |
| Tenant Subdomain |
The tenant subdomain for your Salesforce Marketing Cloud account.
Example: https://subdomain.auth.marketingcloudapis.com, enter subdomain. |
Schema
Schemas and naming conventions can change from version to version. It is recommended to verify your version before continuing.
The schema and information displayed below is for version 1.
Depending on your destination, table and column names may not appear as they are outlined below.
campaigns
The campaigns table contains information about the campaigns in your Salesforce Marketing Cloud account.
Replication Method | Full Table |
Primary Key | id |
Replication Key | modifiedDate |
| Useful links |
content_areas
The content_areas table contains information about the reusable content sections in your Salesforce Marketing Cloud account.
Replication Method | CDC |
Primary Key | ID |
Replication Key | ModifiedDate |
| Useful links |
data_extension
The data_extension table contains information about the data extensions in your Salesforce Marketing Cloud account. A table will be created for each data extension in your Salesforce Marketing Cloud account.
For example: If there are two data extensions named MobileAddress and MobileSubscription, two tables would be created: data_extension._MobileAddress and data_extension._MobileSubscription
Note: Retrieving data extension data requires Read, Write permissions for Data Extensions.
Replication Method | Full Table |
Primary Key | _CustomObjectKey |
| Useful links |
emails
The emails table contains information about the emails in your Salesforce Marketing Cloud account.
Replication Method | CDC |
Primary Key | ID |
Replication Key | ModifiedDate |
| Useful links |
events
The events table contains information about the events in your Salesforce Marketing Cloud account.
When events are replicated to the destination, they are split into the following tables: BounceEvent, ClickEvent, OpenEvent, SentEvent, and UnsubEvent.
Replication Method | CDC |
Primary Keys | EventType EventDate SendID SubscriberKey |
Replication Key | EventDate |
| Useful links |
folders
The folders table contains information about the folders in your Salesforce Marketing Cloud account.
Replication Method | CDC |
Primary Key | ID |
Replication Key | ModifiedDate |
| Useful links |
list_sends
The list_sends table contains information about the completed sends for lists in your Salesforce Marketing Cloud account.
Replication Method | CDC |
Primary Keys | ListID SendID |
Replication Key | ModifiedDate |
| Useful links |
list_subscribers
The list_subscribers table contains information about the lists associated with a specific subscriber in your Salesforce Marketing Cloud account.
Replication Method | CDC |
Primary Keys | ListID SubscriberKey |
Replication Key | ModifiedDate |
| Useful links |
lists
The lists table contains information about the lists in your Salesforce Marketing Cloud account.
Replication Method | CDC |
Primary Key | ID |
Replication Key | ModifiedDate |
| Useful links |
sends
The sends table contains information about the email sends in your Salesforce Marketing Cloud account.
Replication Method | CDC |
Primary Key | ID |
Replication Key | ModifiedDate |
| Useful links |
subscribers
The subscribers table contains information about the subscribers (people subscribed to receive email and/or SMS communication) in your Salesforce Marketing Cloud account.
Replication Method | CDC |
Primary Key | ID |
Replication Key | ModifiedDate |
| Useful links |