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.

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"
}
}