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


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!

Super User II
Super User II

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

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


Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Users online (39,116)