Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Getting 'system' for gs.getUserID() in synchronous script action triggered by "session.established" event

sumitjumale
Kilo Contributor

Hi All,

I have created one synchronous script action which is getting triggered on "session.established" event.

I have written gs.getUserID() glide system function inside script action and printed with the help of log.

I am getting "system" instead of current user sys_id. Can anyone help me with this.

Regards,

Sumit

5 REPLIES 5

It should already be there, passed by the system.   You should just have to reference it in your script action as event.parm1:


Screen Shot 2017-02-21 at 9.51.11 AM.png



Screen Shot 2017-02-21 at 9.50.45 AM.png