Forum Discussion
Retrieve LMS User Name as Variable
I know you can have a user fill in a text box with their name and then later use that variable for personalization. What we would like to do is programmatically retrieve the user name from the LMS. Is there a way to set a variable with data from the LMS when the course is loaded instead of having the user enter their name?
Thx
- JørgenNielsenCommunity Member
When the error code is 0 (no error) and the LMS in fact returns something (the ","), your call to the API is working. Are you sure, that the LMS ever registered a not-empty name for the user? You can check, if the user has a real name in the LMS user interface.
- VincePileggi1Community Member
In the LMS user interface, the student's name is visible at the top of the page when they log in. Also, they are able to generate certificates for courses and those contain their name as well.
- AndrewRostCommunity Member
You're testing this in Flash, correct?
- VincePileggi1Community Member
Correct.
- JørgenNielsenCommunity Member
You might test your course in ADL Sample Run Time Environment or in SCORM Cloud. If it works there, you have a good argument against your LMS vendor.
- PhillipBaref751Community Member
I am doing the same thing trying to get the Users ID or Email from the LMS. I am trying to have a promotion in the course that will give the Users ID or Email over to a website that will randomly select a winner for a prize. I want to use something more than just the users name because there maybe people with the same name. I need help getting this info and then giving it to a website to see if they can win. thanks for any help you can give.
- AlexYong1Community Member
Did some searching and stumbled across this forum. Just a couple questions about this and hoping someone might have an answer.
1) Has anyone figured out a way to get this working with HTML 5 yet?
2) Has anyone gotten this to work on the Skillport LMS?
Thank you in advanced to anyone who might have an answer!
- ChrisFCommunity Member
I am trying to pull the users "business area" from the LMS so I can bespoke parts of the learning to meet their specific roles/needs, however, I have tried amending the above script but no joy so far.
Any ideas? The data is stored in the LMS as Division
Has anyone had any success in pulling division/dept from the LMS? If so, could you possibly share the code?
Thanks
- KawstovFLIPCommunity Member
I got some help in the same area, here:
https://elearningenhanced.com/blog/2012/08/15/grabbing-student%E2%80%99s-name-lms-storyline
- JamesBrandwoodCommunity Member
Thanks!
Works great... once I realised it's caps sensitive.