Copy files from one SharePoint Online account or folder to another SharePoint.

Martin, Heidi (SE GP T SP PS) 571 Reputation points
2023-11-22T11:16:16.2966667+00:00

Hello,

I have a document library and would like to copy a selected document to another SharePoint document library using PowerAutomate.

What should the code be called here? Thank you!

Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

Accepted answer
  1. Yanli Jiang - MSFT 31,606 Reputation points Microsoft External Staff
    2023-11-23T06:15:38.1266667+00:00

    Hi @Martin, Heidi (SE GP T SP PS) ,

    You can use Copy File action in power automate.

    This is my testing process:

    1. The trigger I chose is manual trigger. You can set it according to your needs.
    2. Set the properties such as:

    Current Site Address–Set the source site address

    File to Copy– Choose the file path that you want to copy

    Destination Site Address–Set the destination site address

    Destination Folder– choose a destination folder where you want to store the copied files

    If another file is already there– Select an action if the file is already exist

    11231

    1. The result:

    User's image

    User's image

    Since Power Automate is currently not supported in the Q&A forum, and my knowledge of it is limited, it would be great if this solves your problem. If this doesn't solve your problem, or if you have a more complex problem, it is recommended that you start a new discussion via the Power Automate Community to get more targeted support.

    Here are the relevant articles I found for your reference:

    https://www.spguides.com/power-automate-copy-files/

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Martin, Heidi (SE GP T SP PS) 571 Reputation points
    2023-11-23T05:54:51.0833333+00:00

    Good morning,

    Here are some additional notes on that.

    User's image

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.