Forum Discussion
SasikumarMuruga
4 months agoCommunity Member
Get the Learner Name from Saba Cloud
Hi, We are using Saba Cloud and I am trying to get the Student Name from SCORM package using SL360 but I am not able to get that information. Here is the code I am using it
var player = GetPlayer(...
BrendaParedes
3 months agoCommunity Member
Hi Sasikumar, I'm experiencing a similar issue. I used the code below & it works in Scormcloud and Litmos but not in saba.
let player = GetPlayer();
let myName = lmsAPI.GetStudentName();
let array = myName.split(',');
let newName = array[1] + ' ' + array[0];
player.SetVar("lmsName", newName);
Instead of returning the student's name it's printing random numbers and letters. Was that your case as well? I'm going to try using the code you provided above.