Same notification with same recipients is triggered twice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-29-2022 11:39 PM - edited ‎01-02-2023 06:43 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-30-2022 03:32 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-31-2022 06:18 PM
The reason is we are copying comments on Approval to RITM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-01-2023 09:32 PM
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)