How to get current user detail
Answered
Hi All,
Question is it possible to get the current user detail in userevent (suitescript 2.x)?
I tried this API
context.getRole(); context.getUser()
but I received an error “getRole() and getUser() is not function”
thank you for your response
Best answer
Hi,
look at these lines of code
look at these lines of code
define([‘N/runtime’],
var userId = runtime.getCurrentUser().id;