cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Auto generate network folders

Hi guys,

 

I am creating a solution using PowerApps and SharePoint as the data source. I have been asked if it is possible to autogenerate folders on the network using the data from SharePoint.

This is currently done using a macro in an excel spreadsheet, it uses a template folder structure and creates 7 new folders with the case ID.

I have looked at the file system connector but it doesnt seem to have what i need.

Can anybody share any way to do this? Or is it not possible?

 

Thanks

Donna

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Anonymous ,

 

You could refer to screenshot below:

1.png

You could choose the case number from the special item in the list when create the path.

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
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

9 REPLIES 9
ChristianAbata
Community Champion
Community Champion

hi @Anonymous when you says data on network you mean a sharepoint library?



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
Anonymous
Not applicable

Hi Christian,

 

Thanks for the reply. No, sorry, i mean i want to auto generate these folders on a file server on prem, using the data in SharePoint to trigger this. So for example, if we have accepted a case, when the user saves the form as "Case Accepted" it would initiate a flow to copy a folder structure on the file server? This is the hope!

 

Thanks

Donna

yes @Anonymous  you can create folders in fileServer using this conector. See that file name is a dynamic name, and the same you can do with the folder.

some.PNG



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
Anonymous
Not applicable

Thanks Christian,

 

Would you happen to have a full example you could share with the creation of multiple folders? I have tried like your suggestions but it does not create a folder, only a file.

 

Hi @Anonymous ,

 

If you have a folder name 2 in your file system, you could create an array of folder Name, and then you could create all the folder in the folder 2 with the "Create file" action as screenshot below:

1.png

 

If you don't want to create the file, you could delete the file with Delete file action after the Create file action.

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Anonymous
Not applicable

Thanks Alice,

 

Would you mind sharing the variable? I'm not sure what to do in the steps before the create file so i dont know how to create the  FolderNameArray?

 

Thanks

Donna

Hi @Anonymous ,

 

It depend on your requirement?

How would you like to create the folder?

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi Alice,


Ideally i want to create 1 folder with 7 sub folders like the below screenshot.

The first folder will be named CDXXXX (the XXXX is to be replaced with the case number column from SharePoint), and then it will have the folders named;


CT Data

Device Schemes

Forms

IFU and Lebelling

Manufacturing Drawings

Prototype Testing

Risk Management


I did manage to get a little part of it working by using the 2nd screenshot but unsure how to do subfolders so i appreciate any help!


Thank you!

 

 

Folder Structure.PNGFolderName.PNG

Hi @Anonymous ,

 

You could refer to screenshot below:

1.png

You could choose the case number from the special item in the list when create the path.

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,839)