Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

How to add a dynamic field-based email as an additional recipient (CC) on a Notification,

nameisnani
Giga Sage

Hi team 

 

I'm working on an HRSD requirement where I need to send an existing notification (built on the sn_hr_er_case table) to an additional email address stored on a related table, not the standard User reference.

 

Setup:

  • Notification: "ER Case Closed Document Summary" (Table: sn_hr_er_case)
  • Current recipients configured via "Users/Groups in fields": Opened for, Assigned to, Subject person
  • I need to also send this to the Subject person's Personal Email, which lives on the HR Profile table (sn_hr_core_profile, field: personal_email) — not on sys_user directly.
  • This should only apply for specific case subtypes (not all ER cases).

nameisnani_0-1790080813514.png

 

 

Can anyone please help me - How to configure this 

please help me with steps and screenshots

3 REPLIES 3

Ankur Bawiskar
Tera Patron

@nameisnani 

you can't set dynamic recipient if you are using direct notification

Approach

1) update the existing notification so that it doesn't trigger for your "sn_hr_er_case" table

2) create new notification, event on your table, link that event with notification

3) create business rule and set the recipients and trigger event using gs.eventQueue()

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar  can you please provide me exact steps and screenshots to acehive this 

@nameisnani 

I already shared the steps and what to do.

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader