Configure connection strings for the Tenant Service

Version: 6.0

You must configure connections from your Tenant Service to Salesforce Marketing Cloud (SFMC) and your xConnect server.

Configure a connection to SFMC

To configure a connection between your Tenant Service and SFMC:

  1. On your Tenant Service server, open the <Tenant Service>\App_Config\ConnectionStrings.config file.

  2. In the sitecore connection string, add the tenant ID, hostname, and credentials. For example:

    <connectionStrings>
    <add name="sitecore" connectionString="database=master;tenant id= {841B0E94-4348-494D-B32D-CA5E94F26ACC};host=https:// my-sitecore;timeout=20;auth endpoint=https:// my-sitecore -IdentityServer/;client secret=2ffe4e77325d9a7152f7086ea7aa5114;client id=SitecoreCredentials" />
    </connectionStrings>
  3. Add a new connection string, and name it sfmc. For example:

    <add name="sfmc" connectionString="client id=[ClientId];client secret=[ClientSecret];auth endpoint=[AuthenticationBaseURI];rest endpoint=[RESTBaseURI];soap endpoint=[SOAPBaseURI]" />
    Note

    The SFMC - Behavioral Data Exchange Installation Guide explains where you can find the data you need to configure the string.

  4. Save the config file.

Configure a connection to xConnect

To configure a connection between your Tenant Service and your xConnect instance:

  1. On your Sitecore xConnect instance, open the App_Config\AppSettings.config file. Locate the validateCertificateThumbprint key, and make a note of its value.

  2. On your Tenant Service server, open the <Tenant Service>\App_Config\ConnectionStrings.config file.

  3. Add a connection string for xConnect. For example:

    <add name="xconnect.collection" connectionString="https://sc10_xconnect" />
    Note

    In the example, replace https://sc10\_xconnect with the name of your Sitecore xConnect instance.

  4. Add a connection string for the xConnect certificate. For example:

    <add name="xconnect.collection.certificate" connectionString="StoreName=My;StoreLocation=LocalMachine;FindType=FindByThumbprint;FindValue=299C87186516FDF9DCD27174BEF1213D45BC99F2" />
    Note

    In the example, replace the value in FindValue with the thumbprint you obtained in step Grant the Tenant Service access to xConnect .

  5. Save the config file.

Important

If you have an XPScaled instance, you must also add connection strings for xconnect.search and xconnect.search.certificate.

If you have suggestions for improving this article, let us know!