Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to send emails to multiple users with multiple conditions

AnilM99
Tera Expert

Hi Team,

I want to sent email.

 

AnilM99_1-1706009811817.pngAnilM99_2-1706009853807.png

 

My requirement:

If (Incident Assignment group == configuration item Support Group){

if(Primary User != ""){

send email to primary user.

}

if(Secondary User != ""){

send email to Secondary User.

}

if(Primary User == "" && Secondary User == ""){

send email to Support Group.

}else{

send email to incident Assignment group

}

 

Help on the Notification Email Script

 

Thanks

Anil!

 

1 REPLY 1

Dr Atul G- LNG
Tera Patron
Tera Patron

Best is to via Flow and put the conditions. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************