10-31-2018 12:25 PM
I am working on a script at a custom panel and need to get the username of current user. I've tried session.username but no value returned. Any suggestion?
Solved! Go to Solution.
11-01-2018 09:10 AM
in a browser application there are no variables like in Workflows or Desktop App. What you can do is to get information from the local stored token, something like:
var data = JSON.parse(window.localStorage.apps_storage); console.log(data["userName"]);