Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

Create folder structure according to the current date

(0) ShareShare
ReportReport
Posted on by

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.

  • SanmeshG Profile Picture
    SanmeshG 1,938 on at
    Re: Create folder structure according to the current 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.

    FlowFlowFolder Structure wit FilesFolder 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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,434

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,722

Leaderboard