Hi,
I'd like to build a scheduled flow which monitors the contents of a Sharepoint document library. If a file has been approved but not modified in the last 12 months (for example), I would like the flow to re-submit the file for approval. This seems pretty basic and straightforward to me, but I can't get it working, so I must be missing something obvious.
The below is my current flow. (I'll switch the trigger to a scheduled flow once I've got it working.)

The condition is "getPastTime(1, 'Day')" (again, this will be updated to 12 months once testing is complete) but this flow in its current setup gives me the following error message:
"The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@items('Apply_to_each_2')?['Modified']' is of type 'String'. The result must be a valid array."
Please help!