eventQueue()

The gs.eventQueue() method can be used to queue an event for the event manager programmatically.

Usage:

eventQueue(String name, Object gr, String option1, String option2, String event_queue) 

Example:

if (current.operation() != 'insert' &&current.comments.changes()) { 
gs.eventQueue('incident.updated', current, gs.getUserID(), gs.getUserName());  
} 
The current object is the GlideRecord object of the row currently being inserted, updated, deleted, or queried. We will learn more about the current object in the Business rules section in Chapter 8, Server-Side Scripting.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.13.255