How to pass parameter in event
Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2017 05:01 AM
gs.event queue
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2017 05:04 AM
Hi Kush,
Pass sys_id like current.<var name>

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2017 05:58 AM
Hi Kush,
Please refer the below documentation.
gs.eventQueue("incident.updated", current, gs.getUserID(), gs.getUserName());
The gs.eventQueue function takes the following parameters:
Field | Input Value |
---|---|
Name | The name of the event triggered, set in quotation marks |
Record | The record referenced when the condition in the script evaluates to true. Usually this is expressed as current, meaning the current record the business rule is working on. If the business rule is being triggered as part of a scheduled job, use a GlideRecord argument in its place. |
Parm1 | Passes a string value. Notification events pass the Sys ID of the user with the gs.getUserID() method. Other scripts can reference this string value as parm1 using the format ${event.parm1}. |
Parm2 | Passes a string value. Notification events pass the user name with the gs.getUserName() method. Other scripts can reference this string values as parm2 using the format ${event.parm2}. |
Advanced view fields on the notification form have these -
Event parm 1 contains recipient | Select this check box if the event parameter 1 contains one or more email recipients (in a comma separated list). This field is visible only when theSend when field is set to Event is fired. |
Event parm 2 contains recipient | Select this check box if the event parameter 2 contains one or more email recipients (in a comma separated list). This field is visible only when theSend when field is set to Event is fired. |
Also you can use these in your email scripts -
'event.param1' and 'event.param2' to get their values
Check this - Event Parameters Mail Script
Hope this helps.
Regards
Ujjawal