hey. im looking for a way to get the current logge...
# beginners
l
hey. im looking for a way to get the current logged in employee from a user event script but can't find anything useful in the docs or searching. anyone here knows how to do it?
n
You might want to look up into runtime.getCurrentUser() [SS-1.0 = nlapiGetUser()] if that's what you meant by User.
👍 1
l
Thanks, but that method returns the user executing the script which is the one that created the script record. but not the logged in user that triggered the event script so I can store the employee that created/edited a record in our internal systems.
n
What does your UE say on the deployment, Execute as???
l
sorry, i didnt get that
n
Go to the script Deployment and check for what the Execute As field is set to