Double Notification by approve and Defer on demand table

Cristina Costa
Tera Contributor

Hello,

I need some help with a notification issue.

I created a notification to inform the Project Requestor when the state of a Demand changes. The notification condition is State changes.

However, when I click Approve or Defer on a Demand record, the notification is always sent twice.

How can I prevent the notification from being sent twice in this case?

Thank you.

CristinaCosta_0-1768380012177.png

 

3 REPLIES 3

4078_TA
Tera Guru

Hi @Cristina Costa  ,

 open the script tracer 

TejasSN_LogicX_0-1768381041320.png

 

 

 

 If you found my solution helpful, please mark it as Helpful or Accepted Solution...!

thanks,

tejas

Email: adhalraotejas1018@gmail.com

LinkedIn: https://www.linkedin.com/in/tejas1018

 

and the perform the action this will help you to find what business rules ,scripts ,flow triggering backend.

 

 

 

 

kaustubhdub
Giga Guru

hi @Cristina Costa 

This happens because Approve and Defer actions usually trigger more than one update on the Demand record. One update comes from the approval engine (approval state, approver record), and another update changes the Demand state itself. Since your notification condition is simply “State changes”, it evaluates to true for both updates, causing the notification to fire twice.

To prevent this, you can tighten the notification condition, so it only triggers on the actual state transition you care about, not on approval-related updates.

 

Please mark my answer helpful if this was any use to you.

 

Warm Regards

Kaustubh Dubey

Ankur Bawiskar
Tera Patron

@Cristina Costa 

it's possibly because the record is getting updated twice and hence email is sent 2 times

You can give specific condition like to make it trigger only once

State [Changes From] XYZ

AND

State [Changes To] ABC

💡 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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader