Walkthrough: Setting up the Tenant Service for SFMC
Before you can create tenants to use with Salesforce Marketing Cloud (SFMC), you must set up the Tenant Service for connections to SFMC.
This walkthrough describes how to:
- Configure the connection strings for the Tenant Service
- Configure the connection strings on a Sitecore instance
- Grant the Tenant Service access to xConnect
Configure the connection strings for the Tenant Service
To configure a connection between your Tenant Service and SFMC:
-
On your Tenant Service server, open the
<Tenant Service>\App_Config\ConnectionStrings.configfile. -
In the sitecore connection string, add the tenant ID, host name, and credentials. For example:
-
Add a new connection string, and name it sfmc . For example:
NoteThe SFMC - Behavioral Data Exchange Installation Guide explains where you can find the data required to configure the string.
-
Save the config file.
Configure a connection string to xConnect
To configure a connection between your Tenant Service and your xConnect instance:
-
On your Sitecore xConnect instance, open the
App_Config\AppSettings.configfile. Locate thevalidateCertificateThumbprintkey, and make a note of its value. -
On your Tenant Service server, open the
<Tenant Service>\App_Config\ConnectionStrings.configfile. -
Add a connection string for xConnect. For example:
NoteIn the example, replace https://sc10\_xconnect with the name of your Sitecore xConnect instance.
-
Add a connection string for the xConnect certificate. For example:
NoteIn the example, replace the value in
FindValuewith the thumbprint you obtained previously in step 1. -
Save the config file.
If you have an XPScaled instance, you must also add connection strings for xconnect.search and xconnect.search.certificate.
Configure the connection strings on a Sitecore instance
You must configure connection strings from your Sitecore instance to the Tenant Service and Salesforce Marketing Cloud (SFMC).
To configure connection strings:
-
On your Sitecore instance, navigate to the
<sitename>\App_Config\ConnectionStrings.configfile. You must add these two connection strings in the configuration file. -
Add a connection string for the Tenant Service. For example:
NoteIn the example, replace https://sc10.service with the name of your Tenant Service.
-
Add a connection string for SFMC. For example:
NoteThe SFMC - Behavioral Data Exchange Installation Guide explains where you can find the data required to configure the string.
-
Save the config file.
Grant the Tenant Service access to xConnect
You must give your Tenant Service permission to access data on your Sitecore xConnect instance.
To grant the Tenant Service access:
-
On your Sitecore server, open Manage computer certificates.
-
Navigate to
Certificates-Local Computer\Personal\Certificates. In the certificate list, right-click on your Sitecore xConnect Client (for example,sc10_xconnect_client), click All Tasks, then click Manage Private Keys.
-
On the Security tab, in the Group or user names list, verify that your Tenant Service IIS App Pool is on the list.
NoteYou can find your Tenant Service IIS App Pool name in the IIS Manager, under
<Your local computer name>\Application Pools.If it is there, you can skip steps 4 to 8 and proceed directly to step 9. If it is not there, follow steps 4 to 8 to add it.
-
To add your Tenant Service IIS App Pool to the list, click Add.

-
Click Locations…, select the name of your local computer, and click OK.

-
In the Enter the object names to select (examples) field, type IIS AppPool\
. Click Check Names and then click OK. 
-
In the Permissions dialog box, in the Group or user names field, select your Tenant Service. In the Permissions field, in the Allow column, select the Read check box, then click Apply and OK to close the dialog.

-
In the certificate list, right-click your Sitecore xConnect Client, and click Open.
-
On the Details tab, scroll down to the Thumbprint field. Copy the value. You must have this value to configure the connection strings on your Tenant Service server.
