cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
superbackhand
New Member

How to move files between folders in OneDrive for Business

 

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!

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-dezhili-msft
Microsoft
Microsoft

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

View solution in original post

2 REPLIES 2
annajhaveri
Community Champion
Community Champion

@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.

 

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.
v-dezhili-msft
Microsoft
Microsoft

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

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (3,034)