Email notification

sourav3
Mega Guru

When configuring the content of an Email Notification, which syntax should be used to reference the properties of an event triggering the Notification?

1 ACCEPTED SOLUTION

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

View solution in original post

5 REPLIES 5

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