Hi all,
I'm currently making a flow, which will delete all items on a library if their modification date is older than 10 years. However I'm struggling with finding a condition, which states that the folder has to be empty in order to be deleted. Any Ideas?
Hi @SCTdan thank you for this solution! i was looking for something to show me when a file is in a folder (when i am mid way through a flow) and this works perfectly.
I am trying to add a clause thought.
What I need is to send an email when a file is added (but to a folder that was just created during my flow, so the folder does not exists or has a name till this point - for that reason i cannot start a new flow) is there any way (other than Delay - to do something like "check till there is something in the folder and then send the email - instead of "Do Until" more like a "don't do until" is that even possible? (hope so!) thanks
It works and I learned something new. thank you very much!
Hi @Momo,
I think the way SCTdan provides is work for you. Please try it.
In addition, you could also use Get files to get the items first, and then determine whether it is a folder. If so, configure the Id in the List folder action.
Please take a try.
Best Regards,
You can use List Folder to get folder contents, or Get Files should work too. Since that returns an array of items, you can use the length() function to determine if there are any files.
Quick example-
With no files in the folder-
And with one file in the folder, returns False-
Hopefully that does what you need it to!
Michael E. Gernaey
566
Super User 2025 Season 1
David_MA
516
Super User 2025 Season 1
stampcoin
492