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.

hr undefined, maybe missing global qualifier

omsa1
Kilo Guru

Hi There,

i'm getting this error after upgrade to Istanbul , when view a incident ,this error showing up on top. I've tried steps in WorkflowScheduler undefined, maybe missing global qualifier but the error still there. Please help.

find_real_file.png

6 REPLIES 6

dineshchoudhary
Kilo Guru

Hi Sarasaamani,



Easy fix. Add global. in front of your hr instantiation in your script.



ex:


var wf = new global.hr();



Regards


Dinesh


Hi Dinesh,



you mean modify this script? which line i should change?



if (current.sys_scope.getDisplayValue() == 'Global') current.script = "var ws = new WorkflowScheduler();



ws.run();";



else current.script = "var ws = new global.WorkflowScheduler();



ws.run();";