What is Event Parm 1 and Event Parm 2 in Email Notification?

nayaexam
Kilo Contributor

In Email notification, advance field event parm 1 and event parm 2 are there, what are uses of these two, can any one explain me.

10 REPLIES 10

oharel
Kilo Sage

You can send parameters from the task to the email notification using these to values.


For example, you can send the ticket's number, or assigned to, or comments, depends on what you need.


The command used to do this is the command used to create an event.


Example:


In a business rule, you can add this command:


gs.eventQueue('incident.manager.reminder', current, current.number, gs.getUserName());


gs.eventQueue - adds an event to System Logs -> Events


incident.manager.reminder - is the name of the event


current.number - refers to the number of the task the business rule is running on - this is parm1


gs.getUserName() - gets the username of the one who generated the event - this is parm 2



So when you open the event in System Logs -> Events, you can see parm1 and parm2, such as INC0036577   and John.Doe, respectively.



You can then use the events in an email notification:


If you send the reciepient in parm1, you can check in tab "Who will receive" Event parm 1 contains recipient.


Or you can use it inside the notification itself: ${event.parm1}


More here: http://wiki.servicenow.com/index.php?title=Events_and_Email_Notification#gsc.tab=0



Harel


jnimmala
Kilo Contributor

Hello Harel,



On Istanbul, the "Event parm 1 contains recipient" is missing. Is this still supported. My notification is fired on an event.


Am I missing something?



Thanks,


Jay


Jay,


The answer to your question is:



Event parm 1 contains recipientSelect 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 the Send when field is set to Event is fired.
Event parm 2 contains recipientSelect 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 the Send when field is set to Event is fired.


This is located here:



Create an email notification



Hope this clarifies the issue.


Marshall


Event parm1... Select this check box if the event parameter 1 contains one or more email recipients (in a comma separated-list)

 

In a comma separated list of what??

I have a comma separated list of email addresses, but it's not working.