Hi,
I am trying to filter files in an array I have (using "Filter Array") and then delete the files in the folder I am filtering that are older than 15 days. The old files are the output of the "Filter Array" action. I then use the "Delete files" action and keep getting this issue:
The execution of template action 'Apply_to_each_3' failed: the result of the evaluation of 'foreach' expression '@items('Apply_to_each')' is of type 'Object'. The result must be a valid array.
When I am trying to delete the files, it creates Apply to each loops automatically and then runs this error. Is there a way I can fix this?