Skip to Content
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 ( Get Learning Assignments) -->

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": { "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.