Set up the SuccessFactors spoke v4.x.x
Integrate the ServiceNow instance with your SuccessFactors instance using OAuth client application and API key.
Before you begin
- Request an Integration Hub subscription.
- Activate the SuccessFactors spoke.
- Enable these system properties:
- glide.pf.rest.response_payload_max_size: The maximum value is,
10240. - com.snc.process_flow.reporting.serialized.val_size_limit: The maximum value is,
16384. - com.glide.transform.json.max-partial-length: The maximum value is,
65536.
- glide.pf.rest.response_payload_max_size: The maximum value is,
- Role required: admin.
Note: This procedure is applicable if you are setting up the SuccessFactors spoke v4.11.0 for the first time. If you are using an earlier version of the SuccessFactors spoke, see Migrate to SuccessFactors spoke v4.11.0 for the migration procedure.
For more information about setting up the spoke, see SAP SuccessFactors Spoke - OAuth Setup & Migration - Pre-Tokyo, Tokyo and beyond in ServiceNow Community.
Register OAuth client application in SuccessFactors
Enable client certificate authentication for the outbound communication by generating the keystore.jks and keystore.cer files.
Before you begin
Generate a valid JKS certificate. For information about creating a JKS certificate, see Creating Java Keystore(JKS) with Private Key and Certificate Chain in SAP Help Portal, or, do the steps.
- Use the command
openssl genrsa -out private.key 2048to generate the private.key file. Use the private.key to create x.509 certificate (.cer file) that contains your public key.
Use the command
openssl req -new -x509 -key private.key -out publickey.cer -days 365
- Use the command
Convert the public and private key to a .p12 file.
Use the command to do the above step
openssl pkcs12 -export -in publickey.cer -inkey private.key -out successfactors.p12 -name "<provide custom name>".Convert the .p12 file to .jks
Use the command to do the above step
keytool -importkeystore -srckeystore successfactors.p12 -srcstoretype pkcs12 -destkeystore successfactors.jks.Role required: admin.
Procedure
Log in to the SuccessFactors account as an admin.
Navigate to Admin Centre and click Company Settings.
Click Manage OAuth2 Client Applications.
Click Register Client Application.
Register a client application.
Provide the required details on the form.
In the X.509 Certificate field, provide contents of the cert.pem file (public key) without the headers.
Click Submit.
API Key is generated and displayed. Copy and record the value for later use.
Upload the JKS certificate in your ServiceNow instance
Enable client certificate authentication for the outbound communication by uploading the JKS certificate in your ServiceNow instance.
Before you begin
Role required: admin
Procedure
Log in to your ServiceNow instance as an admin.
Upload the JKS certificate to your ServiceNow instance.
For instructions to upload the JKS certificate, see Upload a certificate to an instance .
Upload JKS certificate.
Register SuccessFactors as an OAuth provider
Use the API key generated during the client application configuration to register the application as an OAuth provider.
Before you begin
Role required: admin
Procedure
In your ServiceNow instance, navigate to System OAuth > Application Registry.
Click New.
In the form, fill in these fields.
| Field | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Name | Unique name to identify the certificate. For example, `SuccessFactors SAML`. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Client ID | Value of the API key you had copied after registering the OAuth client application in SuccessFactors. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Client Secret | Note: Client secret is not needed to register the application as an OAuth provider. You can provide any value for this field. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| OAuth API Script | Name of the OAuth API script. Search for `OAuthUtilSuccessFactors` and select it from the list. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Default Grant Type | Default grant type used to establish the token. Select SAML2 Bearer. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Token URL | SuccessFactors OAuth server endpoint URL that includes the Company ID in this format: `https:// Image omitted: sapsf-app-reg.png Application registry record.
Create the SAML2 assertion producer recordCreate a SAML2 assertion record to generate the SAML2 assertion and exchange the assertion for the access tokens with the provider. Before you beginRole required: admin Procedure
Image omitted: successfactors-saml2-assertion-prod.png SAML2 assertion producer record. Image omitted: sapsf-assertion-ks.png SAML2 assertion keystore record. Image omitted: sapsf-assertion-attribute.png SAML2 assertion attribute record.
Image omitted: sapsf-assertion-oauth.png OAuth entiy profile record. Create Credential record for the OData APICreate Credential record for the OData APIs in SuccessFactors. The SuccessFactors spoke connection and credential alias uses these credentials to authorize actions using the OData API. Before you beginRole required: admin. Procedure
Image omitted: sapsf-odata-cred.png OData credential record.
ResultThe credential record to authorize actions using the OData API is created. Create Credential record for the SOAP APICreate Credential record for the SOAP APIs in SuccessFactors. The SuccessFactors spoke connection and credential alias uses these credentials to authorize actions using the SOAP APIs. Before you beginRole required: admin. Procedure
Image omitted: sapsf-soap-cred.png SOAP credential record.
ResultThe credential record to authorize actions using the SOAP API is created. Create Connection record for the OData APICreate a Connection record for the OData API in SuccessFactors. The SuccessFactors spoke connection and credential alias uses these connections to perform actions in SuccessFactors. Before you beginRole required: admin. Procedure
Image omitted: sapsf-odata-conn.png OData connection record.
ResultThe connection record for the REST API in SuccessFactors is created. Create Connection record for the SOAP APICreate a Connection record for the SOAP API in SuccessFactors. The SuccessFactors spoke connection and credential alias uses these connections to perform actions in SuccessFactors. Before you beginRole required: admin. Procedure
Image omitted: sapsf-soap-conn.png SOAP connection record.
ResultThe connection record for the SOAP API in SuccessFactors is created. Synchronize data between SuccessFactors and ServiceNowCustomise the sample flows as per your requirement to synchronize data between your SuccessFactors and ServiceNow instances. Todo entityThe SuccessFactors spoke provides sample flows to synchronize data bi-directionally for the todo entity. The sample flow, Run SuccessFactors Integration Flow can customised to retrieve data from SuccessFactors, while the Create Todo and Update Todo flows creates or updates the todo records in SuccessFactors when events occur in ServiceNow. While customising the sample flows, ensure that you provide appropriate triggers to retrieve and save future updates using transform maps. Other default entitiesFor these entities, the sample flow, Run SuccessFactors Integration Flow, can be customised to retrieve data from SuccessFactors:
To create or update records in SuccessFactors for these entities when events occur in ServiceNow:
Other SuccessFactors entitiesDepending on the SuccessFactors permissions and configurations, you can also synchronize data of other entities as per your requirement. |