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,969 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2015 04:30 AM
Yes you can, I use it on one of my scripts, as long as the script is the server side and not using the client function.
Pete

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2015 04:37 AM
Hi Pradeep,
Yes we can fire event from include script using eventQueue , Make sure your passing the glideobject instead of current.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2015 04:55 AM
Harish if write gs.eventQueue("sla.user.triggerEmail"); does it work ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2015 05:00 AM
gs.eventQueue("sla.user.triggerEmail", glideobject , email1, email2);