Hi guys,
Our main approval flows are setup so the approval times out after 3 days. After the approval times out, there's a sharepoint update item action set to run on timeout of the approval action. The sharepoint action updates a 'StartWF' variable to YES on the list that this workflow triggers off, so the workflow then restarts again and resends the approval.
This then triggers a fresh run of this workflow and the first steps at the start of the flow are to cancel the previous approval and flow run.
So our run history will look something like below with a particular SharePoint list ID timing out every 3 days and restarting unless someone approves the request within that 3 days.
My question is, is there a way to set the run status of the timed out flow to something other then FAILED E.g. Cancelled? This is so we can exclude these from our failed flow report as they do take up a large portion of our failed flows but actually aren't failing, it's the correct action of the flow to be cancelled and restart.
I'm currently just using the 'Cancel Flow Run' action which doesn't give many options, I'm assuming I'm going to have to find the flow run in the Dataverse table and change it's Status if possible??