Approval skipped will equal an error in the flow

joncar84
Tera Contributor

Is there a way to have a flow produce and error and in turn activate the error handler anytime an approval is "skipped"? The reason for this is that we have a platform with several thousand users and often people will leave a position or change to a different organization and not update their approval status. When this happens the result is an approval group with no approvers in it or an approver that no longer has the roles to render an approval decision. We have a subflow setup on the Error Handler that notifies the helpdesk anytime a flow throws an error so they can troubleshoot. We'd like this to include an invalid approver which results in a "skipped" approval state. Any help is much appreciated!

1 ACCEPTED SOLUTION

Here is how I set it up in a test flow

2023-11-07 07_36_16-Flow Designer - Flow Designer _ test — Mozilla Firefox.png

View solution in original post

6 REPLIES 6

Minh Huy Lam Qu
Giga Sage

I have two solutions:

1. Set the delegation (whenever a user leaves or changes to another department), they should set a delegation in their profile.

2. Check the condition the workflow/flow, if the State is Skipped, create another approval for specific group.

I can't find a way to check for the "approval state" anywhere. Maybe I'm missing it...

jonsan09
Giga Sage
Giga Sage

You can create an if/then/else condition based on the state of the approval to monitor for 'skipped' state then spawn a task to the Service Desk or create an addtional notification

I see two issues here, and maybe I am just not well enough versed in flow designer but:
1. I can't find an "approval state" data pill to add as a condition to the "if statement"

2. I need this fix applied for quite a few flows, so I was hoping to write a new flow that would run on a schedule and analyze all the executions from flows run the previous day on the sys_flow_context table.

 

Does that make sense? I hope I explained those well enough.