web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate – Creat...
Power Automate
Answered

Power Automate – Create job folder then copy/create template subfolders inside it in SharePoint

(1) ShareShare
ReportReport
Posted on by 2
I am trying to get this in an auto created folder in Sharepoint. I have gotten the folder to create with the proper folder name in the proper location, I cant get it to create the subfolders from a template folder)
(Crerated Job Folder with these sub folders)
1 Bid Docs
2 Contract Docs
3 Build Plans & Submittals
4 Change Orders
5 Revisions & RFI
6 Permit Info
7 Material Quotes
8 PO's
9 Our Submittals
10 Processed Receipts Invoices Credits RIPS
11 Processed SLIPS & Tickets RIPS
12 Pictures
13 OE Invoices & Pay Apps
I have the same question (0)
  • Haque Profile Picture
    2,282 on at
    Hi @JM-13042135-0
     
    Is this something - everytime sometheing will happen or manyally trigger a flow all the subfolders will be created inside the  maind foldoer?
  • Vish WR Profile Picture
    1,793 on at
     
    Please explain what you mean by "I cant get it to create the subfolders from a template folder)" 
     
    If you can give sample on hot it should look like and how the folder will be created manual trigger or based on some other action like item update or item created etc..
     
     
  • Suggested answer
    AndreasO Profile Picture
    104 on at
    Try to copy the template folder instead. 
     
    1. Copy Folder action in Sharepoint.
    - Use "Copy with a new name" if folder is already there.
     
    2. Use a Compose with the Copy action as input and remove any illegal special characters from the file path name
     
    3. Get Folder Metadata
    - Use the Path item from the Copy Folder action - outputs('Copy_Folder')?['body/path']
     
    4. Send an HTTP request to SharePoint to change the name
    Method: POST
     
    URI: _api/web/GetFolderByServerRelativeUrl('@{replace(substring(outputs('Copy_Folder')?['body/Path'], 1, sub(length(outputs('Copy_Folder')?['body/Path']), 1)), ' ', '%20')}')/ListItemAllFields
     
    Headers:
    - Accept: application/json;odata=verbose
    - If-Match: *
    - X-HTTP-Method: MERGE
     
    Body:
    {
      "Title": "@{variables('varDateTimeFormat')} - @{outputs('Compose')}",
      "FileLeafRef": "@{variables('varDateTimeFormat')} - @{outputs('Compose')}"
    }
     
    This body will give you title like "03.03.2026 - Project name"

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 641

#2
Vish WR Profile Picture

Vish WR 640

#3
Haque Profile Picture

Haque 495

Last 30 days Overall leaderboard