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

Notifications

Announcements

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 108
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,414 Super User 2025 Season 2 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
    108 on at
    Thank you followed the link and followed the instructions and its worked.  
  • Verified answer
    Riyaz_riz11 Profile Picture
    3,878 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard