I have a flow that runs every day at 5am. Due to the size of the sharepoint list it is linked to, I have an array created from the columns in the list I need, and then filter that array based on created date being between now and 5am on the previous day.
My problem is that if the flow fails on a Saturday monring, and I don't see it until Monday, how can I rerun it as at Saturday without having to edit the filter every time? Is there a better more dynamic way I can set up the flow?
this is my current Filter
@greaterOrEquals(item()?['CreatedDate'], addHours(startOfDay(addDays(utcNow(), -1)), 5)) )