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

 

 

 

 

 

2 REPLIES 2
efialttes
Super User III
Super User III

Hi!

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.

Thanx!



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!



ChristianAbata
Super User II
Super User II

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

supose.PNG

replace(string(outputs('ValueSQL')),'000','999')


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 www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

Helpful resources

Announcements
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

MSFTBizAppsLaunchEvent

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)