Skip to main content

Salesforce Marketing Cloud Connector Setup Guide

In this article, you will learn how to set up the Salesforce Marketing Cloud connector and export an email from EmailShepherd to Salesforce Marketing Cloud.


Package Setup in Salesforce Marketing Cloud

The first thing you need to do is install a new package in your Salesforce Marketing Cloud account.

You can do this by clicking on your profile icon in the top right corner and selecting Setup.

Salesforce Marketing Cloud Setup

Then, in the sidebar on the left navigate to Apps > Installed Packages.

Salesforce Marketing Cloud Installed Packages

You'll be taken to your list of installed packages.

In the top right corner, click on the New button. In the popup enter a name and an optional description for your package. Use something descriptive like "EmailShepherd API" for the name, so that you can easily identify it later.

Click Save.

Salesforce Marketing Cloud New Package

On the next screen, click the Add Components button.

Choose the component type: API Integration

Salesforce Marketing Cloud Add Components

Next, you need to select the Integration Type. Select Server-to-Server

Salesforce Marketing Cloud Integration Type

Next, select the scopes required for the connector.

The EmailShepherd connector requires the following scopes:

  • Channels > Email > Read
  • Channels > Email > Write
  • Assets > Documents and Images > Read
  • Assets > Documents and Images > Write
  • Assets > Saved Content > Read
  • Assets > Saved Content > Write
info

For security best practices, we recommend only granting the above scopes to your component for the EmailShepherd connector.

Salesforce Marketing Cloud Scopes

Once you've selected your scopes hit the Save button.

On the next screen you will be shown your Client Secret. Note it down as you will need it when setting up the connector in EmailShepherd.

Salesforce Marketing Cloud Client Secret

Once you have dismissed the popup you will be taken to the package details page.

Here you need to note down the Client ID.

You also need to note down your subdomain, which is the part in the REST Base URI after the https:// and before the .rest.marketingcloudapis.com/. It will look something like mc4-340qx8pldwck920m8c4l2gy.

Connector Setup in EmailShepherd

Now that you have your Client Secret, Client ID and subdomain, you can set up the connector in EmailShepherd.

In EmailShepherd, navigate to the Connectors page and click on Add Connector.

Give your connector a descriptive name and select Salesforce Marketing Cloud as the integration type.

You will be prompted to enter the Client Secret, Client ID and subdomain you noted down earlier.

Once you have entered these details, click Save.

Salesforce Marketing Cloud Connector Setup

You should now see the connector in your list of connectors.

Salesforce Marketing Cloud Templating Syntax

We recommend creating a Dynamic Content Profile to set up your personalization tags and conditionals for Salesforce Marketing Cloud.

Salesforce Marketing Cloud supports dynamic content / personalization using Ampscript.

Exporting an Email to Salesforce Marketing Cloud

  1. In the email editor, click on the Export button in the top-right corner. This will take you to the Export page.

    Export email

  2. In the Export Settings section:

    • Set Export Type to Connector.
    • Select the locale(s) you want to export.

    Export settings

  3. In the Connector Export Options section:

    • Select the Dynamic Content Profile you created earlier (if applicable).
    • Choose the Salesforce Marketing Cloud connector you set up.
    • Enter a Template Name for each locale you’re exporting.
  4. Click Start Export.

    Salesforce Marketing Cloud connector export options

Once the export completes, you can navigate over to Salesforce Marketing Cloud to see the exported template.