Get User.Id from LMS as variable in Storyline

Aug 17, 2016

Hi group

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

If the answer is yes, are there any code examples to demonstrate it? I found something like that but I can't get the User.Id only the User.name whit this code:

var myName = lmsAPI.GetStudentName();

var array = myName.split(',');
var newName = array[1] + ' ' + array[0];

player.SetVar("newName", newName);

//myName = player.GetVar('myName');

//player.SetVar("newName", newName);

Thanks

9 Replies

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