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
Nik
04/20/2019, 3:56 AM
You might want to look up into runtime.getCurrentUser() [SS-1.0 = nlapiGetUser()] if that's what you meant by User.
👍 1
l
Luis Gabriel
04/20/2019, 6:56 PM
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
Nik
04/22/2019, 4:57 AM
What does your UE say on the deployment, Execute as???
l
Luis Gabriel
04/22/2019, 7:32 PM
sorry, i didnt get that
n
Nik
04/23/2019, 4:31 AM
Go to the script Deployment and check for what the Execute As field is set to