(Article7_TM) Different methods to populate receipents Dynamically in the Email Notification

Tanushree Maiti
Mega Sage
Methods for Dynamic Recipients Population:
  • Event-Based (Most Common):
    • Create a Business Rule to fire an event (gs.eventQueue).
    • Pass the target user/group sys_id in the parm1 parameter.
    • In the Notification, check the box Event parm1 contains recipient.
  • "Users/Groups in fields" (No-Code):
    • In the "Who will receive" tab, select fields from the triggering record, such as Caller, Assigned to, or Watch list, to dynamically populate the recipient list.
  • Email Scripts (For Complex Logic):
    • Use email.addAddress(type, address, name) within a mail script to add CC or BCC recipients based on scripting, such as finding a manager from a user record.
  • Forced Recipient List (Scripted):
    • Create a mail script to query a table (e.g., a custom recipient list) and use template.print('${mail_add_recipients:' + emails.join(',') + '}') to add multiple recipients. 
Please mark this response as Helpful & accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:
0 REPLIES 0