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.

Triggering event from script include

pradeepgupta
Giga Expert

Hi All,

Can we trigger event from script include as follows:

gs.eventQueue("sla.user.triggerEmail",);

Actually I have written one function in script include which contains gs.eventQueue(); , this function is called to trigger the event which results in triggering email notification.

Is it valid to use gs.eventQueue() in script include?

17 REPLIES 17

could you send uour include script code i would like to see once how your sending.


ganeshb_
Kilo Guru

Hi Pradeep,


you can pass null/current as well like below if you don't have GR object and calling script include from client side:


gs.eventQueue("sla.user.triggerEmail",null,param1, param2);



try and let us know.


Thanks,


Ganesh


What script include will return?