Access Event Data in Email Notification

thisisauniqueus
Giga Expert

Hi

i am trying to setup an email notification based on event fired.

Is it possible to get the event data in email notification based on which the email will be sent? If yes please guide me through the procedure.

Regards

7 REPLIES 7

ramireddy
Mega Guru

Every event has 2 parameters "param1" and "param2", which you can access them in notifications and notification email scripts.



event.param1 will give value of parameter1, where as event.param2 will give value of parameter 2.


paramveer
Mega Guru

You can access the even parameters by notification script :



go to notification scripts, create new. In notification script you can get the parameter by event.param_name.


after creating the notification script you can call that notification script in email notification by ${mail_script:script name}



Email Notifications - ServiceNow Wiki



If event parameter contains recipients then you can directly click on checkbox on email notification like below :





find_real_file.png


Thanks Paramveer for your time



Regards


Deepa Srivastav
Kilo Sage

Below links will be helpful for you:-


Events and Email Notification - ServiceNow Wiki


Scripting for Email Notifications - ServiceNow Wiki


Mark Correct if it solved your issue or hit Like and Helpful if you find my response worthy.


Thanks,
Deepa