Connecting to Salesforce Marketing Cloud from App Connect Enterprise as a Service

The following information describes how to use App Connect to connect to Salesforce Marketing Cloud.

What to consider first

App Connect supports connecting to Salesforce Marketing Cloud via a Marketing Cloud package. You can create different types of Marketing Cloud packages however App Connect supports installed packages with server-to-server or web app API integrations only. In the App Connect connection panel you will be prompted to select one of the following packages:
Figure 1. Selecting an application type in App Connect
Screenshot to show the different Salesforce Marketing Cloud application types
A description of the application types:
Salesforce Marketing Cloud - Legacy package
An installed package with legacy functionality most likely created before 1 August 2019. For more information, see Installed Package Types.
Salesforce Marketing Cloud - Enhanced package
An installed package with enhanced functionality. For more information, see Installed Package Types.
If you select the Salesforce Marketing Cloud - Enhanced package you can choose one of the following authorizations methods:
Provide client credentials (OAUTH 2.0 CREDENTIALS)
This option is most suitable for server to server installed packages. If you select this option, you need to provide the tenant subdomain, client ID, and client secret.
Use the application's website to sign in (OAUTH 2.0 AUTH CODE)
This option is most suitable for web app installed packages. If you select this option, as well as providing the tent subdomain, client ID, and client secret, you need to add the redirect URI provided by App Connect to your installed package.
Provide client credentials to use (BASIC OAUTH )
This option is most suitable for web app installed packages. If you select this option, you need to provide the tenant subdomain, client ID, client secret, access token and refresh token.

Connecting to Salesforce Marketing Cloud

To connect App Connect to a Salesforce Marketing Cloud account, you need to provide the following connection details.
Table 1. Salesforce Marketing Cloud credentials
Field Description
Tenant subdomain The subdomain of your tenant in the Salesforce Marketing Cloud instance. The subdomain is a 28-character string that starts with the letters ‘mc’. For example, ‘mc563885gzs27c5t9-63k636ttgm’, which is part of your endpoint API URL, https//mc563885gzs27c5t9-63k636ttgm.rest.marketingcloudapis.com.
Client ID The unique client identifier for the Salesforce Marketing Cloud installed package.
Client secret The client secret for the Salesforce Marketing Cloud installed package.
Access token
Note: This field is required for BASIC OAUTH authorization method only.
Specify the access token that is generated from the application client ID and client secret.
Refresh token
Note: This field is required for BASIC OAUTH authorization method only.
Specify the refresh token that is generated from the application client ID and client secret.
The authorized redirect URI for your Salesforce Marketing Cloud application
Note: This field is required for OAUTH 2.0 AUTH CODE authorization methods only.
Use the value in this field when you create the web app installed package that generates the client ID and secret used above. If you already have an application, you can add the URI by editing the package.
To create the values you need to connect to Salesforce Marketing Cloud, complete the following steps:
Note:
  • These instructions assume that you are creating an installed package in Salesforce Marketing Cloud for the first time.
  • To complete these steps, you must have the Administration | Installed Packages | Administer permission. Or you must have the role of Administrator or Marketing Cloud Administrator. For more information about how to assign permissions and roles, see Assign a Role and Permissions to a Marketing Cloud User from the Users Screen.
  1. From your Salesforce Marketing Cloud instance, open your user icon menu and click Setup > Apps > Installed Packages.
    Figure 2. Salesforce Marketing Cloud installed packages page
    Screenshot to show how to get to the installed packages page
  2. Click New.
  3. In the New Package Details window, enter a name for your package and click Save. The Package details tab is displayed.
  4. Click Add Component.
  5. Select API Integration and then click Next.
  6. Select Server-to-Server or Web App and then click Next.
  7. If you selected Web App, in the URIs field, add the redirect URI provided by App Connect.
    Figure 3. Adding the redirect URI provided by App Connect
    Screenshot to demostrate how to add the redirect URI provided by App Connect
  8. Select the scopes as required by your business needs. For the minimum scopes required by App Connect, see Table 2.
  9. Click Save.
  10. In the Components section of the resulting page, the Client ID, Client secret and Tenant ID are displayed as illustrated in the following screen capture.
    Figure 4. Salesforce Marketing Cloud web app installed package
    How to find the values you need for connecting to a Salesforce Marketing Cloud Web app installed package

General considerations for using Salesforce Marketing Cloud in App Connect

  • (General consideration) You can see lists of the trigger events and actions that are available on the Applications and APIs page of the App Connect Designer.

    For some applications, the events and actions depend on the environment and whether the connector supports configurable events and dynamic discovery of actions. If the application supports configurable events, you see a Show more configurable events link under the events list. If the application supports dynamic discovery of actions, you see a Show more link under the actions list.

  • (General consideration) If you are using multiple accounts for an application, the set of fields that is displayed when you select an action for that application can vary for different accounts. In the flow editor, some applications always provide a curated set of static fields for an action. Other applications use dynamic discovery to retrieve the set of fields that are configured on the instance that you are connected to. For example, if you have two accounts for two instances of an application, the first account might use settings that are ready for immediate use. However, the second account might be configured with extra custom fields.
  • The following table specifies the minimum scopes required for installed packages. Failing to select the minimum scopes will result in an error with status code 403 - No permissions to perform the specified action.
    Table 2. Minimum scopes
      Create Read Update Write Send Publish Post Delete Execute Activate
    CHANNELS
    Email   Yes   Yes Yes          
    OTT   Yes     Yes          
    Push   Yes   Yes Yes          
    Social   Yes   Yes   Yes Yes      
    Web   Yes   Yes   Yes        
    ASSETS
    Documents and images   Yes   Yes            
    Saved Content   Yes   Yes            
    Automation  
    Journeys   Yes   Yes       Yes Yes Yes
    CONTACTS Create Read Update Write Send Publish Post Delete Execute Activate
    Audiences   Yes   Yes            
    List and Subscribers   Yes   Yes            
    DATA  
    Data Extensions   Yes   Yes            
    File Locations   Yes   Yes            
    Tracking Events   Yes   Yes            
    EVENT NOTIFICATIONS
    Callbacks Yes Yes Yes         Yes    
    Subscriptions Yes Yes Yes         Yes    
    HUB                    
    Campaign   Yes   Yes            
    WEBHOOKS                    
    Webhooks   Yes   Yes            
Go back to Step 8.