Skip to Content
0
Nov 25 at 12:16 PM

SF- LMS APIs : Unable to hit the API from postman

114 Views Last edit Nov 25 at 01:25 PM 2 rev

Hi Experts,
I am new to SF-LMS and our current task is to see how we can hit the SF-LMS APIs from postman.

I am trying to execute the learning plan API (3.1.5.1 Get Learning Assignments) --> https://help.sap.com/doc/cd753f29622244df98e335af737b5422/1908/en-US/SF_LRN_Web_Svc_Integ.pdf

I entered the same sample url as mentioned in the above document also prefixed the host url before the API.
Is there an issue with the way how target URL is formed?

Getting the below error, any ideas on how to approach the LMS APis will be very helpful.
Operation -- GET

URL -- <SF-LMS-Host-URL>/learning/odatav4/public/user/learningPlan/v1/UserTodoLearningItems?$filter=criteria/maxRowNum%20eq%2010%20andcriteria/retrieveLinkedSchedules%20eq%20'true'%20and%20criteria/includeVLSlink%20eq%20true%20and%20criteria/includeSurveys%20eq%20true

Error:

snehashah_0-1637841623679.png

{ "error": { "code": null, "message": "The system query option '$filter' has the not-allowed value 'criteria/maxRowNum eq 10 andcriteria/retrieveLinkedSchedules eq 'true' and criteria/includeVLSlink eq true and criteria/includeSurveys eq true'." }

Anyone who has worked with LMS APIs who can help here will be of great help.