I am building a flow to delete files on a SharePoint folder based on the date Last Modified - X Days.
I used the following approach as a guideline: https://powerusers.microsoft.com/t5/Power-Automate-Community-Blog/Delete-files-older-than-X-days-fro...
However it seems I am getting a wrong output in the LastModified field as per screenshots: "0001-01-01T00:00:00"
Am I using the correct field for this purpose?
Can anyone assist?
Has your problem been solved?
If you want to delete a file based on it's modified date , you can refer to the following screenshots.
I have a folder like this:
Flow in details:
After flow runs, the files will be deleted.
Hope the content above may help you.
If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.
It doesn't seem to work for me. I'm getting that the flow is running successfully, but nothing is getting deleted; I still have files from January...
Not sure what is going on...
Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.
Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.
The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.