Triggering event from script include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2015 04:25 AM
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?
- Labels:
-
Integrations
- 22,973 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2015 06:34 AM
Hi Harish,
Yes I have to hard code the email as the person does not exists in the service-now.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2015 06:38 AM
ok then you can send by using below code
gs.eventQueue("sla.user.triggerEmail", '', '', '');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2015 01:08 AM
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 ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2015 01:11 AM
check send to event creator is checked?
If its not sending hard code your mail id and check.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2015 02:09 AM
Yes Harish Murikinati send to event creator is checked.