Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

How to move files between folders in OneDrive for Business

(0) ShareShare
ReportReport
Posted on by 10

 

I have a lot of files in a folder in OneDrive for Business. I'm trying to organize them using Flow. How should I do this? There are a few ways I would like to do it. 

 

Manually Trigger a Flow

Identify files created within a certain date to be organised into Folders in OneDrive for Business

For example:

- Files created from 01 January 2022 to 31 March 2022 to be in Folder 1

- Files created from 01 April 2022 to 30 June 2022 to be in Folder 2

 

Manually Trigger a Flow

Identify files create with a specific word organised into Folders

- Files with the word "Report" to be in Folder "Reports".

 

 

Grateful for any advice for me, thanks!

 

  • Verified answer
    v-dezhili-msft Profile Picture
    Microsoft Employee on at
    Re: How to move files between folders in OneDrive for Business

    Hi @superbackhand ,

    Do you want to classify files in Onedrive?
    We can use the list files in a folder action to get the following file information.
    Then we can classify them with switch action.
    vdezhilimsft_0-1669197471654.png

     

    I made a test for your reference.
    In my scenario I classify by file extension.
    vdezhilimsft_1-1669197471654.png

     

    vdezhilimsft_2-1669197471655.png

     

    split(item()?['Name'],'.')[1]

     

    vdezhilimsft_3-1669197471656.png

     


    Best Regards,
    Dezhi
  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at
    Re: How to move files between folders in OneDrive for Business

    @superbackhand  i havent done this before but you can try using Find files in folder action https://learn.microsoft.com/en-gb/connectors/onedriveforbusiness/#find-files-in-folder as starting point to find files with your query parameter.

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow