Add a Salesforce connection string to Sitecore

Version: 8.0

When you have collected the connection string values from Salesforce, you must add the connection string to Sitecore.

To add the connection string to Sitecore:

  • On your Sitecore server, in the ConnectionStrings.config file, add the following connection string, replacing the values in brackets with the values you collected from Salesforce:

    RequestResponse
    <add name="mysf" connectionString="user id=[user id];password=[password];client id=[client id];secret key=[secret key];security token=[security token]" />

The following is an example of what the connection string looks like after you have replaced the values in brackets:

RequestResponse
<add name="mysf" connectionString="user [email protected];password=b;client id=GEH9zlTNB8o8BA45pAeDtC8W.DIqrAzuky2uffEEOwtHxIEhLzkmPwjz8KF_vzWY8dNIfurWHpfbZPGdtc3b;secret key=5468568999798354123;security token=g3ygFuNzGgm33YTfsM3WKG3AA" />  
Note

If you connect to a Salesforce sandbox, you must add the parameter sandbox=true to the connection string.

Do you have some feedback for us?

If you have suggestions for improving this article,