-
Notifications
You must be signed in to change notification settings - Fork 42
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
base: 4.3.0
Are you sure you want to change the base?
Conversation
.../connectors/salesforce-marketing-cloud-connector/salesforce-marketing-cloud-configuration.md
Outdated
Show resolved
Hide resolved
.../connectors/salesforce-marketing-cloud-connector/salesforce-marketing-cloud-configuration.md
Outdated
Show resolved
Hide resolved
...rence/connectors/salesforce-marketing-cloud-connector/salesforce-marketing-cloud-overview.md
Outdated
Show resolved
Hide resolved
.../connectors/salesforce-marketing-cloud-connector/salesforce-marketing-cloud-configuration.md
Outdated
Show resolved
Hide resolved
...cs/reference/connectors/salesforce-marketing-cloud-connector/sfmc-access-token-generation.md
Outdated
Show resolved
Hide resolved
1fe31d8
to
af9ea3e
Compare
|
||
<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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
**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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.” |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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”). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### 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). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5. Verify the Token: | |
5. Verify the token: |
Purpose
Add documentation for the salesforce marketing cloud connector.