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

This is a generic event for comments?


Thanks and Regards,

Saurabh Gupta

yes ,this is generic event for comments

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

I checked and Approval field on RITM is always set as requested, irrespective of approval outcome.

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