Access Event Data in Email Notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2016 11:25 PM
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
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2016 11:39 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2016 11:51 PM
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 :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2016 01:17 AM
Thanks Paramveer for your time
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2016 11:53 PM
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