AnsweredAssumed Answered

Need help- SF LMS OData API Error when searching Learning document

Question asked by naveen.intg99 on Oct 21, 2016
Latest reply on Feb 14, 2017 by 423849

I am trying to get the SAP SuccessFactors Learning documents related to learning items but i am getting error json response. 

 

I am first  calling API to get the token fand then making another Get API to get the document location payload and getting error

{
   "grant_type":"client_credentials",
   "scope":{
      "userId":"userSF",
      "companyId":"DEFAULT",
      "userType":"user",
      "resourceType":"learning_public_api"
} }

 

GET API call:--

learning/odatav4/learningPlan/v1/LearningItemDocuments?%24filter=lisCriteria/itemID%20eq%20%1275358%27%20and%20lisCriteria/itemTypeID%20eq%20%DOC%27%20and%20lisCriteria/revisionDate%20eq%201423010640000

 

Getting Error Response:

But getting below error JSon response:

{
"error": {
"code": null,
"message": "ERROR: error.public.rest.item.noaccess\n"
}
}

 

What is the above error message means? Which side is the issue boomi or success factor. Any help is appreciated.

 

======================================

As per documentation: I am expecting below response.

Request:  

GET /learning/odatav4/learningPlan/v1/LearningItemDocuments

?$filter=lisCriteria/itemID eq '1147305822'

and lisCriteria/itemTypeID eq 'COURSE' and lisCriteria/revisionDate eq 1147304737000

 

Response: 

{

@odata.context: "$metadata#LearningItemDocuments"

value: [1]

0:{

pkID: "Net101-COURSE-1147304730000"

componentTypeID: "COURSE"

componentID: "Net101"

revisionDate: 1147304730000

documentID: "Net101_IB"

reviewFlag: false

documentTitle: "Networking 101 Instructor Book"

documentLocation: "https://docs.me.com/courses/net101/Net101_IB.pdf"

lisCriteria: null

} }

 

 

 

Any help is appreciated

Outcomes