In notification emails, how do I call the email recipient user name in the email content

Madankumar N1
Tera Contributor

In notification emails, how do I call the email recipient user name in the email content

1 ACCEPTED SOLUTION

knight202
Kilo Guru

Place ${user_name} in the body of the notification or template.


View solution in original post

12 REPLIES 12

May i know why you need watch list values?


try with below script.


<mail_script>template.print(current.watch_list.getDisplayValue());</mail_script>



Scripting for Email Notifications - ServiceNow Wiki


i need to find out the list of recipients who is receiving the mail.


have you tried with above script.



Recipient list in notification script in email


Can you explain your requirement in more detail?



You can find this in the sys_email table.



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

Think about the requirement for a moment.



For an email, that has multiple recipients, you want the recipient user.


There is no 'recipient user', only 'recipient users' (plural).



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022