Create Sub folders when you create a new folder in SharePoint online Document Library - Power Automate

In this blog post I will explain how Power Automate can be used to dynamically create sub folder structure in a SharePoint document library when a new folder is create.


  1. I will explain how to create an MS Flow which would perform the below series of actions,
  2. User creates a New Folder in the root folder of a SharePoint document library
  3. MS Flow is triggered to automatically created the following folder structure
    • "Folder Name /  01 - Quotation and Tender Documents "
    • "Folder Name /  02 - Purchase Order "
    • "Folder Name /  03 - Email Correspondence "
    • "Folder Name /  04 - Drawings "
    • "Folder Name /  05 - Test Report "
    • "Folder Name /  06 - Photos "
    • "Folder Name /  07 - Routing "
  4. Email will sent to the user after the folder creation.
Steps 

Create a new “Automated – from blank” Flow.


Provide a name for the Flow i.e. “Folder Create”; select the “When an item is created” SharePoint trigger and then click “Create”.



Set the “Site Address” and “Document Library Name” to you target site and list.  


Go to Action Settings and add a new trigger condition


Type the following trigger condition and click on done button
Note : This means, flow is only runs when a new folder is created only


Create a new condition and add the following 


[Folder path] is equal to [Your document library Name]

Then add Create new folder action (inside the true condition)






----------- Happy Coding ----------- 

Comments

Post a Comment