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 12:16 AM
This is a generic event for comments?
Thanks and Regards,
Saurabh Gupta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-30-2022 12:37 AM
yes ,this is generic event for comments
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-30-2022 12:47 AM
can you please confirm your approval field of task is aligned with the approval action meaning if approval is getting rejected the value of approval field is rejected and if it is getting cancelled, approval field is cancelled. if this is the case what we can apply the logic check the previous and current value of approval fields if it is from rejected to cancelled not to trigger the event else trigger it.
Thanks and Regards,
Saurabh Gupta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-30-2022 01:38 AM
I checked and Approval field on RITM is always set as requested, irrespective of approval outcome.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-30-2022 01:43 AM
I think you can make it in sync by having a onAfter BR on sys_approval table with condition state changes and update the approval field task task extended table.
Thanks and Regards,
Saurabh Gupta