Getting LMS Vaules Into Storyline Variables

May 24, 2012

Hi group

Is it possible to execute an lmsget or similar to get values from the lms (e.g.,, and put the result into a variable in Storyline?

If the answer is yes, are there any code examples to demonstrate it?



19 Replies
Jesse Fuhrman

Does anyone here know how I can find what the variable name of a grade item in Moodle is so that I can use it with Phil's js?  I'd like to pull a Pre-Test score from the beginning of a course into a Post-Test results slide to compare the two.  The problem is that they are in different .story files, as there are many parts to the course.

Mahalakshmi Babu

Hi Phil, i am trying to get info like student name and students email id from moodle into storyline project using javascript. But its not working. This is the script i have used


var player = GetPlayer();


var myName  = lmsAPI.GetStudentName();

var myID  = lmsAPI.GetStudentID();


var array  = myName.split(',');

var newName = array[1] + '  ' + array[0];


player.SetVar("FullName", newName);

player.SetVar("StuId", myID);


Is there something that i have to change in the script?

Peter Brown

Yes, Alex, please do share your work around. When you say 'using Tin Can', are you referring to your Storyline export method, or the LMS?

When I first posted this thread (looks like over three years ago!), Tin Can wasn't an option. We only had SCORM.

I look forward to seeing how you've pulled the info from Tin Can.

This discussion is closed. You can start a new discussion or contact Articulate Support.