Configure S4S Now Web Service API Key


The S4S Now web service requires an API key to be sent with each request. The key in the request is checked and if valid the call to the web service method is allowed otherwise it is blocked. The API key needs to be configured in both Sitecore and Salesforce.

Configure Sitecore

The API key for the service is stored in the S4S Now configuration file S4SNow.config. Generate a new GUID to be the API key and set the value of the S4SNow.ApiKey setting to the generated GUID.

<setting name="S4SNow.ApiKey" value="98CF5A8F-SD21-4613-880B-4566FDF9D823" />

Configure Salesforce

The API key stored in the configuration in Sitecore needs to be entered into the S4S Now Salesforce package custom settings.

  • Setup » Build » Develop » Custom Settings (Salesforce Classic)
  • Setup » Platform Tools » Custom Code » Custom Settings (Lightning)
  • Click Manage in front of S4SNow Settings

  • Enter the API key stored in the S4SNow.ApiKey setting in Sitecore into the Web Service API Key field in the S4SNow package custom settings.

  • Click Save


Configure S4S Now Client Certificate