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

Running transform maps asynchronously

Post a command to the ECC queue for the mid server to initiate a powershell file copy