Service Portal widget: get current user in server script

 data.sysUserID = $sp.getParameter("sys_id");

if (!data.sysUserID) { data.sysUserID = gs.getUser().getID(); }

Comments

Popular posts from this blog

GlideRecord setValue

variable advanced reference qualifier example

URL link in addInfoMessage