Double Notification by approve and Defer on demand table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
Hi @Cristina Costa ,
open the script tracer
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
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! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
