Same notification with same recipients is triggered twice

Kumar38
Kilo Sage

I have a BR on RITM table that triggers when comments change , script has a event and is used in notification with weight 10. When a approval is rejected with a comment (a different script copies the comments to RITM) ,the comment change BR is triggered twice , one for Approval approval/rejection comment , 1 for RITM cancel comment.

 

This is causing duplicate notifications (from same notification)  . Wouldn't system ignore one of them as they are generated at same time ?

 

I tried commenting out current.update in other BRs. But Issue still exists

12 REPLIES 12

kamal_s
ServiceNow Employee
ServiceNow Employee

Hi Kumar38,

It seems you are trying to achieve 2 different use cases with one Business Rule and thus the issue is happening.

Have you thought about triggering one BR for rejection of approval and triggering the appropriate rejection notification and another Notification which can run directly on comment change, without a BR in between?

The reason is we are copying comments on Approval to RITM.

kamal_s
ServiceNow Employee
ServiceNow Employee

Hi Kumar38,

One approach you can take - since your approval rejection notification is the priority, when you are pushing the comments from Approval to RITM you can disable BR to run (use setWorkflow(false) function) so you only get one notification at the time of rejection.

We have to consider if there are more changes happening through the BR which is copying the comments (I have assumed it is just copying the comments here)