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

Hi Harish,



Yes I have to hard code the email as the person does not exists in the service-now.


ok then you can send by using below code



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


Hi Harish Murikinati,



I am using gs.eventQueue("sla.user.40",'','',''); to trigger event, in the event log I am able to see the event however when I am checking the email log, email is not getting triggered. Any idea why ?


check send to event creator is checked?



If its not sending hard code your mail id and check.


Yes Harish Murikinati send to event creator is checked.