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

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

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Top Solution Authors
Users online (1,188)