To and Cc in Notifications

harinya
Tera Contributor

HI ,

I need to send a notification to users listed in the users field on the Assessment Persona table (sn_smart_instance_persona).
The trigger condition is when the state changes to "Cancelled" on the Assessment Instance table (sn_smart_asmt_instance).

Tried like below

  • Created a notification on the sn_smart_asmt_instance table with the correct trigger condition.

  • Attempted to send the email using an email script with email.addAddress('to', ...) to target users from the Persona table, but it is not working.

  • I also need to include users from the additional_users field (a Glide List on the same Assessment Instance record) in the CC.
    Thanks in Advance

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@harinya 

you cannot set the recipient using email script, it only supports setting CC and BCC.

please correct that logic and share us the updates.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

harinya
Tera Contributor

Thanks for Response @Ankur Bawiskar 
but how to send Notification for To address, i have written notification on smart instance table because triggering condition is present on the table

@harinya 

are you able to dot walk and pick the user in the Whom to send?

If not then you can use after update business rule and use GlideRecord on that table and pick the recipient

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@Ankur Bawiskar 
don't have option to pick the user in who will receiver, receivers on other table
after Br how to pass this in Notification