Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add salesforce marketing cloud connector documentation #1451

Open
wants to merge 12 commits into
base: 4.3.0
Choose a base branch
from

Conversation

aashikam
Copy link
Contributor

@aashikam aashikam commented Mar 7, 2025

Purpose

Add documentation for the salesforce marketing cloud connector.

@aashikam aashikam force-pushed the sfmc branch 2 times, most recently from 1fe31d8 to af9ea3e Compare March 11, 2025 12:03

<img src="{{base_path}}/assets/img/integrate/connectors/sfmc/sfmc-client.png" title="SFMC client id" width="95%" alt="SFMC client id"/>

### Step 5: Retrieve Your User Subdomain (Required for setting up MI)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
### Step 5: Retrieve Your User Subdomain (Required for setting up MI)
### Step 5: Retrieve your user subdomain (Required for setting up MI)


<img src="{{base_path}}/assets/img/integrate/connectors/sfmc/sfmc-new-component.png" title="SFMC new component" width="75%" alt="SFMC installed package component"/>

### Step 3: Add an API Integration Component
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
### Step 3: Add an API Integration Component
### Step 3: Add an API integration component


<img src="{{base_path}}/assets/img/integrate/connectors/sfmc/sfmc-setup.png" title="SFMC setup" width="50%" alt="SFMC setup"/>

### Step 2: Create an Installed Package
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
### Step 2: Create an Installed Package
### Step 2: Create an installed package

2. DomainKeys Identified Mail (DKIM): DKIM adds a cryptographic signature to outgoing emails, verifying they weren't altered in transit. Generate and activate DKIM keys in Salesforce and add the provided CNAME records to your DNS. [Learn more about DKIM setup](https://help.salesforce.com/s/articleView?id=sf.emailadmin_setup_dkim_key.htm&type=5).
3. Domain-based Message Authentication, Reporting, and Conformance (DMARC): DMARC builds on SPF and DKIM to define how email receivers should handle authentication failures and provides reporting. [Learn more about DMARC](https://help.salesforce.com/s/articleView?id=sf.emailadmin_dmarc.htm&type=5).

## Create and Send Emails in Salesforce Marketing Cloud
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Create and Send Emails in Salesforce Marketing Cloud
## Create and send emails in Salesforce Marketing Cloud


## Create and Send Emails in Salesforce Marketing Cloud

### Step 1: Log in and Access Email Studio
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
### Step 1: Log in and Access Email Studio
### Step 1: Log in and access Email Studio

@@ -0,0 +1,99 @@
# Prerequisites for Sending an Email

**Note**: Make sure authentication is set up before sending emails to prevent them from being bounced. Specifically, if the sending domain fails any of the SPF, DKIM, or DMARC checks, the email will be rejected.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
**Note**: Make sure authentication is set up before sending emails to prevent them from being bounced. Specifically, if the sending domain fails any of the SPF, DKIM, or DMARC checks, the email will be rejected.
!!!Note
Make sure authentication is set up before sending emails to prevent them from being bounced. Specifically, if the sending domain fails any of the SPF, DKIM, or DMARC checks, the email will be rejected.


<img src="{{base_path}}/assets/img/integrate/connectors/sfmc/email-template-home.png" title="Email Template Home" width="50%" alt="Email Template Home"/>

2. Click “New Email Template,” fill in the required details, and save.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
2. Click New Email Template,” fill in the required details, and save.
2. Click **New Email Template**, fill in the required details, and save.


<img src="{{base_path}}/assets/img/integrate/connectors/sfmc/email-template-new.png" title="New Email Template" width="100%" alt="New Email Template"/>

3. Open the template details page and click "Edit in Builder." From there, you can modify the HTML, paste an existing template, or choose from their available templates. I have also added a custom HTML template, which you can find [here](https://gist.github.com/aashikam/999fc472ebc16e06be4e72f644fff55d).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
3. Open the template details page and click "Edit in Builder." From there, you can modify the HTML, paste an existing template, or choose from their available templates. I have also added a custom HTML template, which you can find [here](https://gist.github.com/aashikam/999fc472ebc16e06be4e72f644fff55d).
3. Open the template details page and click **Edit in Builder**. From there, you can modify the HTML, paste an existing template, or choose from their available templates.

Remove this phrase. We can upload this file to the attachments folder in the doc space to be downloaded.

Download a custom HTML template [here](insert link).


### Step 3: Create the Email Message in Content Builder

1. From Email Studio, click on “Content.”
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. From Email Studio, click on Content.”
1. From Email Studio, click on **Content**.

### Step 3: Create the Email Message in Content Builder

1. From Email Studio, click on “Content.”
2. Choose “Create” and select your preferred email type (Template Based, HTML Paste, or Text Only).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
2. Choose Create and select your preferred email type (Template Based, HTML Paste, or Text Only).
2. Choose **Create** and select your preferred email type (Template Based, HTML Paste, or Text Only).


### Step 4 Configure a Sender Profile

1. In Email Studio, click the “Admin” tab (or use the Email drop-down to find Admin).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. In Email Studio, click the Admin tab (or use the Email drop-down to find Admin).
1. In Email Studio, click the **Admin** tab (or use the Email drop-down to find **Admin**).

### Step 4 Configure a Sender Profile

1. In Email Studio, click the “Admin” tab (or use the Email drop-down to find Admin).
2. Find the “Sender Profiles” option in the left-hand menu.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
2. Find the Sender Profiles option in the left-hand menu.
2. Find the **Sender Profiles** option in the left-hand menu.


<img src="{{base_path}}/assets/img/integrate/connectors/sfmc/sender-profiles.png" title="Sender Profiles" width="30%" alt="Sender Profiles"/>

3. Click “Create” to make a new profile or select an existing profile to update.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
3. Click Create to make a new profile or select an existing profile to update.
3. Click **Create** to make a new profile or select an existing profile to update.


<img src="{{base_path}}/assets/img/integrate/connectors/sfmc/new-profile.png" title="New Profile" width="100%" alt="New Profile"/>

4. Provide a “From Name” and a verified “From Email Address” that is authorized in your Salesforce Marketing Cloud account.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
4. Provide a From Name and a verified From Email Address that is authorized in your Salesforce Marketing Cloud account.
4. Provide a **From Name** and a verified **From Email Address** that is authorized in your Salesforce Marketing Cloud account.

Confirm that your response includes an access_token.
Save the token securely. It is valid for the duration specified in the response and will be required for subsequent API calls.

> Note: WSO2 MI will handle token generation and expiration internally. You only need to provide the Client ID and Client Secret in your API configuration.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
> Note: WSO2 MI will handle token generation and expiration internally. You only need to provide the Client ID and Client Secret in your API configuration.
!!!Note
WSO2 MI will handle token generation and expiration internally. You only need to provide the Client ID and Client Secret in your API configuration.


5. Verify the Token:

Confirm that your response includes an access_token.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Confirm that your response includes an access_token.
Confirm that your response includes an `access_token`.


### Step 2: Create an Installed Package

1. In the Setup menu, scroll down to the Platform Tools section.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. In the Setup menu, scroll down to the Platform Tools section.
1. In the **Setup** menu, scroll down to the **Platform Tools** section.

### Step 2: Create an Installed Package

1. In the Setup menu, scroll down to the Platform Tools section.
2. Click on Apps and then select Installed Packages.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
2. Click on Apps and then select Installed Packages.
2. Click on **Apps** and then select **Installed Packages**.


<img src="{{base_path}}/assets/img/integrate/connectors/sfmc/sfmc-packages.png" title="SFMC packages" width="50%" alt="SFMC installed packages"/>

3. Click the New button.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
3. Click the New button.
3. Click the **New** button.

<img src="{{base_path}}/assets/img/integrate/connectors/sfmc/sfmc-packages.png" title="SFMC packages" width="50%" alt="SFMC installed packages"/>

3. Click the New button.
4. Enter a Name and Description for your package (for example, “API Integration Package”).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
4. Enter a Name and Description for your package (for example, API Integration Package).
4. Enter a **Name** and **Description** for your package (for example, `API Integration Package`).


3. Click the New button.
4. Enter a Name and Description for your package (for example, “API Integration Package”).
5. Click Save.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
5. Click Save.
5. Click **Save**.


<img src="{{base_path}}/assets/img/integrate/connectors/sfmc/sfmc-component-details.png" title="SFMC new component details" width="95%" alt="SFMC installed package component details"/>

2. Click on Add Component.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
2. Click on Add Component.
2. Click on **Add Component**.


<img src="{{base_path}}/assets/img/integrate/connectors/sfmc/sfmc-scope.png" title="SFMC component scope" width="75%" alt="SFMC component scopes"/>

6. Click Save to add the component.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
6. Click Save to add the component.
6. Click **Save** to add the component.


Extract the subdomain by taking the portion between `https://` and `.auth.marketingcloudapis.com` in your base URI. For example, from `https://mczl3z3cmqr47kmts5x34v1cdlky.auth.marketingcloudapis.com/`, the subdomain is `mczl3z3cmqr47kmts5x34v1cdlky`.

### Step 6: Obtain the Access Token
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
### Step 6: Obtain the Access Token
### Step 6: Obtain the access token

https://YOUR_SUBDOMAIN.auth.marketingcloudapis.com/
```

2. Replace YOUR_SUBDOMAIN with the subdomain provided in your Salesforce Marketing Cloud account (found in your account details).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
2. Replace YOUR_SUBDOMAIN with the subdomain provided in your Salesforce Marketing Cloud account (found in your account details).
2. Replace `YOUR_SUBDOMAIN` with the subdomain provided in your Salesforce Marketing Cloud account (found in your account details).

```

2. Replace YOUR_SUBDOMAIN with the subdomain provided in your Salesforce Marketing Cloud account (found in your account details).
3. Construct the Token Request:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
3. Construct the Token Request:
3. Construct the token request:

```
The output will be a JSON object that contains your access token.

5. Verify the Token:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
5. Verify the Token:
5. Verify the token:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants