SK SKYVVA Documentation

1 Pre requisites

The following prerequisites must be fulfilled to successfully configure the REST adapter using the new Skyvva connector module.

1.1 Skyvva new REST connector module

To successfully migrate your existing interface configuration from the soap to the rest adapter, you must install the latest version of the Skyvva connector module. The new Skyvva connector contains the following module.

Note that the new deployment file contains the old module versions used with the soap adapter. Ensure that your sap-po version supports the REST adapter with the OAuth authentication. Please upgrade your SAP-PO to the latest SP level if this is not the case.

To use the client credentials flow described in section 1.2, install connector module version 2.3.6 or later. That version has prerequisites of its own, among them a minimum SKYVVA version in your Salesforce org: see Prerequisites in How to use the OAuth2 client-credential flow?.

1.2 Salesforce External Client App (OAuth client credentials)

The REST receiver channel logs in to Salesforce with OAuth: the SAP REST adapter for every message, and the Skyvva module for the operations that call Salesforce themselves, such as Skyvva Batch and Skyvva Bulk. Both logins use the OAuth 2.0 client credentials flow with an External Client App in Salesforce, not a Connected App with a Salesforce username and password:

Prepare the following before you configure the REST receiver channel:

  1. In Salesforce, create an External Client App, enable the client credentials flow and assign a run-as user, as Salesforce describes in Configure an External Client App for OAuth 2.0 Client Credentials Flow. Copy the app's Consumer Key (the client ID) and Consumer Secret (the client secret).
  2. The token URL is your org's My Domain URL: https://<your-domain>.my.salesforce.com/services/oauth2/token. The hosts login.salesforce.com and test.salesforce.com reject the client credentials flow.
  3. In SAP PO, set the REST adapter's grant type to Client Credentials Grant, and add the Skyvva module parameter OAuth2Flow with the value Client-Credentials. Give the REST adapter a token lifetime too, or it requests a new token for every message.

How to use the OAuth2 client-credential flow? describes step 3 field by field, and how to check that both logins use the new flow.

If your channels already log in with a Connected App and a username and password, the same article shows how to switch them, in its section Migration from Username-Password to Client-Credentials.

Open this article in the interactive viewer →