I would like to create a flow that automatically creates a folder structure that has the year at the top level, followed by the month and finally the day. The structure should automatically expand every day to correctly store files for the respective date.
Hi @ludwig_van ,
In the Create file action for Folder Path use the below expression. If you create multiple files on the same day , it will save the files to a same folder(meaning it won't create duplicate folders if folders with the same name exist already in that Folder Path).
/@{formatDateTime(utcNow(),'yyyy')}/@{formatDateTime(utcNow(),'MMMM')}/@{formatDateTime(utcNow(),'dd')}
Adding a screenshot for your reference. It works the same way for OneDrive/SP.
Flow
Folder Structure wit Files
Hope this helps , if this answers your question please give this answer a thumbs up and mark this as a solution.
Thanks,
Sanmesh