Having an issue here where my flows that are active for more than 28 days are automatically getting deleted. I am running an approval system and some of these flows need to be running for a longer period of time. So when an approver eventually responds, nothing happens since the flow is no longer available. Is there any work around for this?
Hi @DennisTan ,
Here is an article about Missing runs or triggers history for a flow.
Flow run or trigger history is retained for 30 days after the start of the flow. So if it is past 30 days history is deleted and data you are looking for will not be there.
I have an alternative workaround, please try the following workaround.
I assemue you have items in SharePoint.
Here is the flow.
If there is no response to approval for more than 27 days, the Flow will re-run.
I am aware of this workaround, however it is not suitable for the my current needs. My flow has multiple approvers and after every approver, their responses (comment,date,email etc.) are recorded into variables within the flow. These variables are then passed along to the next approver within the flow where they can see a log of all the other approver's details and responses. Having the approval request restart will wipe away all the data recorded. My only other option would be to split the flow into parent-child flows. However, not sure if this impacts child flow run as well?
Let's say I have Flow A that triggers Flow B as child flow. Now Flow A runs for 25 days and as a last step it calls child Flow B that will run for another 25 days. Flow A didn't finish as it expects answer to come from Flow B, but Flow A will be terminated after 30 days. As the Flow A is terminated, will it terminate child Flow B as well?