- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2020 11:34 AM
When configuring the content of an Email Notification, which syntax should be used to reference the properties of an event triggering the Notification?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2020 12:10 AM
Hi Sourav,
I guess you are looking for syntax of using event parms in Notifications.
You can use ${event.parm1}, ${event.parm2} to access Event parm values in Notifications. You can use email scripts for any manipulation of those parm values.
Check this out for more: How to send more than 2 parameters in an event?
If it helps, please mark ✅ Correct and 👍 Helpful.
Thanks & Regards,
Madhav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2020 12:24 AM
Hi,
Basic Syntax:
gs.eventQueue("Event Name","GlideRecord Object","Parm1","Parm2");
Use gs.getUserName() and gs.getUserID() for parm1 and parm2 if no other values are required to see which user triggered the event in the event log.
If you want to trigger a notification via event then in When to Send
Send When: Event is fired
Choose your event name:
Call via gs.gs.eventQueue() in business Rule.
gs.eventQueue('x_60157_employee_spe.employeeOccasion',current,current.number,gs.getUserName());
If you want to call an event in notifcation script, gs.eventQueue will work.
gs.eventQueue('x_60157_employee_spe.employeeOccasion',current,current.number,gs.getUserName());
If you want to access parameters in the notification email script:
event.parm1, event.parm2 like this.
Thanks
Sudhanshu