Skip to Content
0
Jan 22, 2023 at 09:06 PM

Setting up Successfactors LMS api as a SAP CAP destination

639 Views Last edit Jan 22, 2023 at 10:28 PM 4 rev

Hello,

I'm trying to build a simple SAP CAP application that connects to SuccessFactors LMS API and runs a couple queries for a dashboard. I've already tested it using python but I'm trying to convert it to CAPM BTP and I cant figure out how to setup the destination manually in package.json or using subaccount destinations.

Token URL:

https://(SF instance Name).scdemo.successfactors.com/learning/oauth-api/rest/v1/token

For reference, I'm using the Oauth Token Server in Learning Administration and have successfully connected following the LMS API documentation using Postman and Python.

image.png

Its mainly because of the scope/grants below and I'm also unsure what type of oauth destination its using(I've tried Oauth2ClientCredentials and JWTBearer) . I haven't been able to find any resource setting this up so any help is appreciated. I've tried adding below as additional properties in Destination configuration but no luck

{ 
  "grant_type": "client_credentials", 
  "scope": { 
"userId": "userhere",
"companyId": "SF instance here", "userType": "user type here", "resourceType": "learning_public_api" } }

Attachments

image.png (60.1 kB)