Skip to Content

SuccessFactors LMS API using SCPI

Hello Everybody,

I need use SCPI to build an interface to call LMS API (to Merge user) but I have a doubt.

In note 2318897 explain the authentication method for LMS api is using Bearer token.

To obtain the Bearer token I need call another API with a OAuth Token.

There is not a more easy way?

Witch kind of adapter I need use in SCPI to post request to LMS API? HTTP? ODATA? SuccessFactors?

Are there any example about this scenario? thanks for support

Alessandro

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 08, 2018 at 05:47 AM

    You can use SuccessFactors adapter with OData V4 protocol, together with an OAuth 2 credential artifact. These will take care of the whole authentication, etc.

    You can refer to following sample prepackaged integration with SuccessFactors Learning.

    https://api.sap.com/package/SAPSuccessFactorsLearningandSAPERPFinancialsIntegration?section=Artifacts

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Alessandro

      Unfortunately, based on my own experience, the error returned from the SFSF OData V4 adapter tends to be cryptic and hard to figure out what's wrong :(

      For a start, I suggest that you try out using a GET request first - and make sure the query is correct by running it first on Postman. If it is a query that does not even work in Postman, then the error would be worst to figure out in CPI.

      As for the OAuth credentials, you can refer to the following picture as an example. More details on the link below which is part of the guide for the prepackaged content I mentioned above.

      https://help.sap.com/viewer/2f4cf6a1d4c94a96918ad18e1b6b0aef/1811/en-US/d50a9cfe3b3047e39e8bcc2adf2083e7.html

      Also, from your screenshot, I noticed you are using Eclipse - probably try out using Web UI as there are updates to the adapter versions since the Eclipse plugin was deprecated in the middle of the year.

      Regards

      Eng Swee

      oauth.jpg (47.3 kB)
  • Dec 12, 2018 at 12:15 PM

    Thanks a lot Eng Swee!

    In this sample prepackaged integration the use adapter with OData V4 with basic credential. I don't see any OAuth 2 credential artifact step. Or I'm wrong?

    So can I use directly Odata V4 passing SFSF credentials? no token generation is necessary?

    thanks

    Alessandro

    Add comment
    10|10000 characters needed characters exceeded