Forum Discussion
Create folders and sub-folders in document library with Power Automate flow
Naligurtan You can create a power automate flow as shown in video to create folders and subfolders. Then you have below two options to create a button in SharePoint online document library:
- Using JSON formatting: You can create a button in library using JSON to run a power automate flow. Check this: Create a button to launch a Flow - note that this button will be added against each file/item in your library
- Using SPFx list view command set: Create a HTTP triggered power automate flow and run it using button create via SPFx list view command set.
Use these links for more information:
Similar thread: I made a flow! Now how can I let others use it?
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs
- ganeshsanapAug 16, 2023MVP
Wibisono1340 Which action are you using for creating the folder? Did you already extracted the name for folder or you need help with it as well?
If you have already extracted the name for folder, use Create folder action in the Power automate flow and pass the extracted name for folder using dynamic content in the flow.
Please consider giving a Like if my post helped you in any way.
- Wibisono1340Aug 16, 2023Copper Contributor
ganeshsanap I used outlook email as receiver as the trigger, then I extracted words from subject to create folder name. Split subject text is for splitting subject words, extracted subject 1-3 are for each word that is extracted
- Wibisono1340Aug 16, 2023Copper Contributor
Wibisono1340 However, it took longer time to do it.