# How to Set Up Your SFMC Integration

## Before you begin

To connect FeedOtter to Salesforce Marketing Cloud, you need:

* A Pro, Corporate, or Enterprise edition Salesforce Marketing Cloud account.
* A Salesforce Marketing Cloud user with the role of Administrator or Marketing Cloud Administrator.
* You'll only need to log in as this user the first time you authenticate.
* A client ID, client secret, and subdomain.

## Generate a client ID, client secret, and subdomain

### Step 1: Create a package

1. Log in to your Salesforce Marketing Cloud account with a Marketing Cloud Administrator or Administrator account.&#x20;
2. Enter your username and password and click Log in.
3. Click your user account icon in the top-right corner.
4. Click Setup.
5. Navigate to Apps in the left-side menu. Select Installed packages.
6. Click New.
7. Give a name to the package.  We suggest “FeedOtter RSS To Email”. The description field can be left empty.
8. Click Save to confirm.

<figure><img src="https://2086102864-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIdHBGk8cqznUpEqm5g1U%2Fuploads%2FexMaGyLI065ZYG7yl1Wk%2FSFMC%20-%20App%20Screen1.png?alt=media&#x26;token=07041c91-b6e3-4605-a0ea-7c8cdf2a02bc" alt=""><figcaption></figcaption></figure>

### &#x20;Step 2: Add API integration component

1. Go to Installed packages and find the newly created FeedOtter package. Click it to open the configuration view.
2. Click Add component.
3. Select API Integration as the component type. Click Next.

<div align="left"><figure><img src="https://2086102864-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIdHBGk8cqznUpEqm5g1U%2Fuploads%2FYVntjhQL4Ib2DrNrjYpk%2FSFMC%20-%20API%20Integration%20Type.png?alt=media&#x26;token=d6eef865-b905-40a0-a289-113a6904725a" alt="SFMC Integration API Type"><figcaption></figcaption></figure></div>

4. Select Server-to-Server as the integration type. Click Next.

<div align="left"><figure><img src="https://2086102864-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIdHBGk8cqznUpEqm5g1U%2Fuploads%2FV5rI8u0iiUi0441k6ksH%2FSFMC%20-%20API%20Integration%20Type%202.png?alt=media&#x26;token=a9a86bd2-d479-4e7e-a445-5ae60e819c88" alt="SFMC Integration API Server-to-server app"><figcaption></figcaption></figure></div>

5. Add permission to the following properties:

* Channels, Email - READ, WRITE, SEND
  * Allows FeedOtter to create new emails.
* Assets, Emails and Saved Content - READ, WRITE
  * Allows FeedOtter to create new email content.
* Automations, Journeys - READ, WRITE, EXECUTE, ACTIVATE
  * Allows FeedOtter to create a new Single Send Journeys.
* Campaigns - READ, WRITE
  * Allow FeedOtter to create new campaigns.
* DATA, Data Extensions - READ
  * Allow FeedOtter to show a dropdown for selecting email audience.
* Click Save to confirm.

{% hint style="danger" %}
Changes to MC permissions typically take 5-10 minutes to take effect.  Please wait several minutes after changing permissions to attempt FeedOtter send.
{% endhint %}

### Step 3: Find the client ID, client secret, and subdomain for the installed package

When you view the installed package in Salesforce you will  see the client ID, secret, and authentication base URL under the API Integration heading.

Please record these 3 items as they will be entered into the FeedOtter interface to establish the api connection in the following step.

<div align="left"><figure><img src="https://2086102864-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIdHBGk8cqznUpEqm5g1U%2Fuploads%2FnTdGxyK1knWkIvi5yCcl%2FSFMC%20-%20Find%20your%20Base%20url.png?alt=media&#x26;token=84d21858-353c-4da1-893f-58025e73149b" alt=""><figcaption></figcaption></figure></div>

### Step 4. Setup a new SFMC integration in your FeedOtter account

1. In FeedOtter, navigate to **Settings > Integrations.**
2. Select Salesforce Marketing Cloud.
3. Enter the items gathered in Step 3 into the requisite FeedOtter inputs.  The completed form should look like this:

<div align="left"><figure><img src="https://2086102864-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIdHBGk8cqznUpEqm5g1U%2Fuploads%2FvpJzZe6NEMW7OTZIyptH%2FSFMC%20-%20FeedOtter%20API%20Settings.png?alt=media&#x26;token=a461beac-79ee-4890-a576-b8e51b95d309" alt=""><figcaption></figcaption></figure></div>

4. Click **Save.**

At this point an integration with FeedOtter has been created.  To test that FeedOtter can access Marketing Cloud please click the TEST button next to your newly created connection.

<figure><img src="https://2086102864-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIdHBGk8cqznUpEqm5g1U%2Fuploads%2F3Dr9uoYxpdYCxpTzGU83%2FSFMC%20-%20Test%202.png?alt=media&#x26;token=34bee67a-8c8b-4c23-894e-0e946b9816a4" alt=""><figcaption></figcaption></figure>

#### &#x20;

At this point you are ready to set up your RSS and/or curated newsletters using the following tutorials:

* [getting-started](https://docs.feedotter.com/automated-newsletters/getting-started "mention") (Automated Newsletters)
* [getting-started](https://docs.feedotter.com/curated-newsletters/getting-started "mention") (Curated Newsletters)

####
