eventQueue()
The eventQueue() method of the GlideSystem (gs) API accepts several arguments: first, a string containing the name of the event to trigger. Events can be created in the event registry from System Policy | Events | Registry. The name of these events is what should be specified in the first argument here.
The second argument is the context in which the event should run. Most events run against a particular record, so this argument should be a GlideRecord object containing the record against which this event should run.
The third and fourth arguments are event parameters. Event parameters are available to the triggered script or action. For example, the first or second parameter in an event which triggers an e-mail notification ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access