- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 03:36 AM
I have a email notification which gets triggered, when the sc_req_item state becomes either closed complete, closed incomplete or closed skipped.
This notification gets triggered twice:
When I checked the event log, I notice that the sc_request gets updated twice.
Can someone explain why this is happening and how to resolve this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2023 12:01 AM - edited 11-17-2023 12:02 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 03:44 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 03:58 AM
These are the 3 tables that have current.update and none of them seems to cause this problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 04:12 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 05:41 AM
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.