Email Notification gets triggered twice

vidhya_mouli
Giga Sage

I have a email notification which gets triggered, when the sc_req_item state becomes either closed complete, closed incomplete or closed skipped.

 

1.png

 

This notification gets triggered twice:

vidhya_mouli_1-1699961671423.png

 

When I checked the event log, I notice that the sc_request gets updated twice.

vidhya_mouli_2-1699961732585.png

 

 

Can someone explain why this is happening and how to resolve this?

 

 

1 ACCEPTED SOLUTION

vidhya_mouli
Giga Sage

I managed to solve this. A flow (in sc_req_item table) was updating the State of the sc_request. At the same time a BR was updating the State of the sc_request. This BR had the trigger condition before. I changed this to after and now everything works fine.

View solution in original post

6 REPLIES 6

Prince Arora
Tera Sage
Tera Sage

@vidhya_mouli 

 

There might be a After-business rule on the sc_req_item table in which "current.update()" is present, Please take a look as it executes the update twice

 

Steps:

1) Go to sc_req_item table

2) Check business rules on it

3) Check "*current.update" in script filter, if it is present then it is the only culprit

4) Disable it for sometime and try again.

 

If my answer solved your issue, please mark my answer as  Correct & 👍Helpful based on the Impact.

These are the 3 tables that have current.update and none of them seems to cause this problem

vidhya_mouli_1-1699963113897.png

 

Current. Update() might be the real issue here. But if you feel otherwise ,please try change the condition on notification to something like "state changes to "closed complete" .

 

Regards,

Luxo

I tired changing the condition and still face the same issue. I know the problem is something is causing the Request State to change from Approved to Closed Complete twice. Not sure how to check which is causing this issue.

vidhya_mouli_0-1699969257908.png