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 stop both notifications from triggering

Joshua Comeau
Kilo Sage

I have a generic email approval notifications and their being triggered at the same time in my workflow as I have two approval requests being actioned at the same time:

I need it to not send the other notification if the group is this specific group how to make the code work?

Notification 1:

JoshuaComeau_0-1705414127856.png

 

Notification 2:

JoshuaComeau_1-1705414141648.png

 

9 REPLIES 9

its sending double notification 

both did not work 
any ideas? your code current.getValue('source_table') === 'sc_req_item' && current.sysapproval.assignment_group.toString() === 'ec711d8d1b0921904d480d01cd4bcb11';

Hi @Joshua Comeau 

Maybe you can give the Condition Builder a try.

Timi_0-1705461867013.png

 

Normally, the Assignment group isn't utilized in the Requested item; instead, we generate a Catalog task and assign it to a specific group. Are you sure you're checking in the right place?

 

Cheers,

Tai Vu

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Joshua Comeau 

 

We need to see, what is trigger conditions. The SLA and Notification are those which run on specific condition. If conditions matches it will trigger. 

*************************************************************************************************************
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]

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

based on what I shared is the only conditions