cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AlbaTi
Regular Visitor

Make a flow to move files from one folder to other folder if the file starts with a number (OneDrive)

Good evening; I have to make a flow for OneDrive. I have some files in a folder. If any file is modified (the file name) and the name begins with 14, the files that meet this condition, they have to be moved to another folder call documents 14. How can I do it? Thank you for the help.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1 ACCEPTED SOLUTION

Accepted Solutions

 

Hi @AlbaTi ,

 

Please try this to resolve it:

39.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
efialttes
Super User III
Super User III

Hi!

My suggestion is:

Add as trigger 'When a file is modified'

Add a Condition action block, just need one condition rule.

Select as operator 'starts with'

ON the left side of your condition rule, assign 'File name' trigger output from dynamic content menu

On the right side of your condition rule, assign 14

 

Now on the true branch, add action block 'Move file'

 

Please try it and let us know your progress

Hope this helps

 



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



v-bacao-msft
Community Support
Community Support

 

Hi @AlbaTi ,

 

Please check this configuration:

37.PNG

Make sure that the document 14 folder is not a subfolder of the folder configured in the trigger.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Good morning; I have try this configuration. I don´t know if this is correct. But, when I try the flow it gives me an error.

 

Flujo.PNG

 

Flujo 1.PNG

 

Hi @AlbaTi ,

 

Please try this to resolve it:

39.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

I have tried. When I run the flow, It say that is correct but no change is seen in any of the folder.

 
 
 
 
 
 
 
 
 
 
AlbaTi
Regular Visitor

¡Now it works! I can´t believe it. Thank you for the help. If I have any more problems, I will not hesitase to ask. ¡Thank you!

AlbaTi
Regular Visitor

Hello again. Can I add more conditions? In this case, how can I do it?.

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (2,787)