Showing results for 
Search instead for 
Did you mean: 
Helper II
Helper II

Creating folders and sorting into subfolder

I have a flow that is triggered when a new SQL item is created:


This flow creates a folder based on a project number: 133841 for instance

I would like to be able to put this into a sub folder: 133000-133999 automatically

So when we get to 134000 it get put into a new subfolder 134000-134999






Super User
Super User


So your plan is to convert project number into an int, div by 1000. Then convert result back to string, search for folder names starting with result, right? If no Folder found, create a new one.


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

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

Escribo sobre Power Automate en:

Proud to be a Flownaut!

Community Champion
Community Champion

hi @FH1000  please try this, I suppose you are using Sharepoint but this solution works with onedrive to.



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!

If you want you can follow me at Quieres contenido en español? Síguenos en Power Automate LA

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (1,732)