- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2017 06:10 AM
In notification emails, how do I call the email recipient user name in the email content
Solved! Go to Solution.
- Labels:
-
Best Practices
-
Team Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2017 07:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2017 06:14 PM
Hi madankumar,
In an email notification the recipients are specified in the [Who will receive] table.
In your email notification you can write mail script and use current.xxx to quote the recipients. It depends on which field you want to send the email to.
Regards
Henry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2017 07:13 PM
Place ${user_name} in the body of the notification or template.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2017 08:07 PM
Answer: Depends.
If your recipients are a field, i.e. Assigned to
${assigned_to}
If your recipients are the event1 parm:
<mail_script>
var grUser = new GlideRecord('sys_user');
if( grUser.get(event.parm1) ) {
template.print(grUser.name);
}
</mail_script>
If your recipients are the event2 parm
<mail_script>
var grUser = new GlideRecord('sys_user');
if( grUser.get(event.parm2) ) {
template.print(grUser.name);
}
</mail_script>
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2017 08:15 PM