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 / Copying documents from...
Power Automate
Answered

Copying documents from one folder into a newly created folder

(2) ShareShare
ReportReport
Posted on by 113
I have written a flow that when a new item is added to a sharepoint list it creates a new folder and calls it the name of the person in the namecolumn of the list, this all works fine, I now want to copy a set of standard documents from another document library into the newly  created folder and just cannot work out how to do that, help would be much appreciated
Categories:
I have the same question (0)
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,963 Moderator on at
     
    You didn't describe the location or structure of how the files are stored, so I will assume its all just in the root (or a specific folder) in the source.
     
    You just have to use List Files (don't include sub folders in the action)
    Then use Copy File to create a copy in the new location
     
    That or use List File (don't include)
    Then use a loop to grab each Files Content and use Create File in the other location
     
     Here is an article also. since you will need to get metadata of the file in List files (and dont grab folders), 
  • michalison Profile Picture
    113 on at
    Thank you followed the link and followed the instructions and its worked.  
  • Verified answer
    Riyaz_riz11 Profile Picture
    4,191 Super User 2026 Season 1 on at
     
    Step-by-step solution
    1. Trigger: When an item is created (SharePoint)
    Use the "When an item is created" trigger for your SharePoint list.
    2. Create a folder in the target document library
    Use "Create new folder" action
    Site Address: Your SharePoint site
    List or Library: The library where you want to create the folder
    Folder Path: Root or inside a parent folder (if any)
    Folder Name: Use the column value from the new item, e.g., @{triggerOutputs()?['body/PersonName']}
    3. List the files in the source document library (Standard documents)
    Use "Get files (properties only)" action
    Site Address: SharePoint site of the source library
    Library Name: Your source document library with the standard documents
    4. Loop through the files and copy them into the new folder
    Add an "Apply to each" on the output of "Get files"
    Inside the loop, add "Copy file" action
    Source Site Address: same as above
    File Identifier: Use Identifier from the "Get files" output (current item)
    Destination Site Address: Your target SharePoint site
    Destination Folder: The folder path where you created the folder (use the dynamic path to the new folder)
    If file name collision happens, choose to overwrite or rename accordingly

    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
    Regards,
    Riyaz

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 382

#2
Valantis Profile Picture

Valantis 370

#3
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

Last 30 days Overall leaderboard