lmsAPI call to retrieve LMS course name or ID
Oct 26, 2021
Hello,
I'm working on a course that treats different students coming from various majors differently. WE need to know which course the SCORM content was launched from. I tested lmsAPI.GetStudentID() successfully and I was able to get this particular piece of information to the SCORM lesson. Now I need something that looks like lmsAPI.GetLMSCourseID() or lmsAPI.GetLMSCourseName(). Does that seem like something achievable/
I tried to look for any documentation that will include a comprehensive list of LMS API calls that we can initiate from StoryLine, but wasn't able to.
Appreciate any input.
2 Replies
In AICC, you would be retrieving the Course.ID and/or Course.Title data elements. It does not appear that SCORM exposes those elements for easy retrieval via LMSGetValue(). As you can see in the SCORM Run-Time Reference Guide, there isn't a counterpart to those elements.
Sam Coulson published a list of the functions available in the LMSAPI.js file several years ago in response to Help with JavaScript and pulling data from an LMS.
Tried a little bit with LMSGetValue() as it has a parameter called cmi.core. I wasn't able to get the output after many tries.
Now, the only option to have the entire student enrollment data stored in a csv file and use it as a look-up file. The issue this will have to be constantly updated as students may switch majors.
Thanks