Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Add a connection string to the S4S system Web service to the <connectionString> element of App_Config/ConnectionStrings.config

For Salesforce production and developer environments all Salesforce environments the connection string should look like:

Code Block
languagexml
linenumberstrue
<connectionStrings>
  <add name="S4SConnString" connectionString="S4S:user id=user;password=password;environment=login.salesforce.com" />
</connectionStrings>

For Salesforce sandbox environments the connection string should look like:

Code Block
languagexml
linenumberstrue
<connectionStrings>
  <add name="S4SConnString" connectionString="S4S:user id=user;password=password;environment=testmycompany.my.salesforce.com" />
</connectionStrings>

...

Key       

Description

user id

The Salesforce username that will be used to establish the Partner API session

password

The password for the Partner API user.
If the servers IP address isn’t trusted by the Salesforce Organization being connected to the user's security token can be appended to the password.

token

(Optional) As an alternative to appending the user's security token to the password in the connection string, it can be defined separately to provide the same functionality. Learn more about how to reset and get your security token.

environment(Optional

) The type of The domain for the Salesforce environment being connected to. Defaults to Production if unspecified which will also work for developer edition organizations if required.

Possible values:

  • Production
  • DeveloperEdition
  • Sandbox
  • Pre_release

This should be the My Domain domain for the Salesforce org. More information

Example connection strings:

Code Block
languagexml
linenumberstrue
S4S:user id=<user_name>;password=<user_password>
S4S:user id=<user_name>;password=<user_password><user_security_token>
S4S:user id=<user_name>;password=<user_password>;token=<user_security_token>
S4S:user id=<user_name>;password=<user_password>;environment=<binding_environment>

The connection string can optionally define the environment to be connected to by appending the following:

Code Block
linenumberstrue
;environment=<bindingEnvironment>

Permitted values for the binding environment are one of the following four strings or an endpoint url:

  • Production
    connects to login.salesforce.com (Default)
  • DeveloperEdition
    connects to login.salesforce.com
  • Sandbox
    connects to test.salesforce.com
  • Pre_release
    connects to prerellogin.pre.salesforce.com

...


Next Step

CD/CM Considerations

...

Child pages (Children Display)
alltrue
depth2
pageInstall S4S Installationin Sitecore (Required)