Hello, I am struggling to get files deleted in specific folders after 90 days. I looked at similar posts but they used an "Advance Condition", which I could not find on the current version of SharePoint. Is there a way to implement this feature? If so, please show a step-by-step procedure.
What I tried doing, but it didn't work
Is there a way to set it up so that it can exclude a specific file or folder?
Hi @IceQueen
Thank you for posting.
Due to the software update, there is no Advance Condition now, You could use expression on both sides of Condition to achieve your needs.
I have tested it on my side and it can delete the file that 14 days after modified in the folder. You can change 14 to 90.
Please refer to as below:
The Expression on the left of Condition:formatDateTime(item()?['Modified'],'yyyy-MM-dd')
The Expression on the left of Condition:formatDateTime(addDays(utcNow(),-14),'yyyy-MM-dd')
After Flow runs. The file ‘master student list’ will be deleted.
Hope the content above may help you.
Best Regards
Lily
WarrenBelz
146,605
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,946
Most Valuable Professional