cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

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

 

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
Highlighted
Dual Super User III
Dual Super User III

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

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!



Highlighted
Community Support
Community Support

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

 

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.
Highlighted
Regular Visitor

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

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

Highlighted
Community Support
Community Support

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

 

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

Highlighted
Regular Visitor

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

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

 
 
 
 
 
 
 
 
 
 
Highlighted
Regular Visitor

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

¡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!

Highlighted
Regular Visitor

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

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

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (9,971)