Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Populate recipients First name in the email body for a particular group

taylor13
Tera Contributor

I am trying to send an email notification to a group of users. I have a salutation in the Body of the email saying Hello "Name". How do I populate the recipients name in "Name" such that each user who receives the email gets their own name in the email salutation? 

 

@Ankur Bawiskar @Community Alums @Aman Kumar S 

1 ACCEPTED SOLUTION

Ramu Neelam
Giga Expert

Hi Taylor,

If the notification recipient is a group, then system generates only one single email and content will not be generated dynamically for each individual recipient.  However, if you are ok to have all the recipients separated by comma or slash then you can achieve this using email script:

Write an email script and get the recipient name(s) from the group and then generate a concatenate string will all the recipients separated by "/". For example, the notification group is Business_Users_Group which contains two users in it (Ramu Neelam and Taylor Joy). The email script iterates the group members and generates a string "Hello Ramu / Taylor".

Please keep in mind that ServiceNow generates single email and send it to all the group members but not multiple individual emails (separate email for each recipient). So, you can't generate email body like "Hello Ramu" for Ramu's email and "Hello Taylor" for tailor email because it is only one email where both Ramu and Taylor is copied.

 

Please let me know if you need any help with the email script.

 

Thanks,

Ramu Neelam

View solution in original post

11 REPLIES 11

Hello Sandeep,

I have tried with OOTB fields it's only picking up Entity Owner name. I want Recipients name in email body. I am doing for Advance risk assessment

Ramu Neelam
Giga Expert

Hi Taylor,

If the notification recipient is a group, then system generates only one single email and content will not be generated dynamically for each individual recipient.  However, if you are ok to have all the recipients separated by comma or slash then you can achieve this using email script:

Write an email script and get the recipient name(s) from the group and then generate a concatenate string will all the recipients separated by "/". For example, the notification group is Business_Users_Group which contains two users in it (Ramu Neelam and Taylor Joy). The email script iterates the group members and generates a string "Hello Ramu / Taylor".

Please keep in mind that ServiceNow generates single email and send it to all the group members but not multiple individual emails (separate email for each recipient). So, you can't generate email body like "Hello Ramu" for Ramu's email and "Hello Taylor" for tailor email because it is only one email where both Ramu and Taylor is copied.

 

Please let me know if you need any help with the email script.

 

Thanks,

Ramu Neelam