Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Simply want to move a file from one folder in sharepoint to another document library.

(0) ShareShare
ReportReport
Posted on by 18

For example, when a scanner scans to a sharepoint library, users need to move it to another document site.  How can I accomplish to move automatically with Flow.

 

I tried the;

 

Sharepoint - Create File

If yes

Create File (in another location)

 

This does nothing...

  • bresleveloper Profile Picture
    4 on at
    Re: Simply want to move a file from one folder in sharepoint to another document library.

    Using "When file is created or modified in a folder" event trigger after duplicating the file solved the problem

     

    https://bresleveloper.blogspot.com/2018/12/microsoft-flow-form-into-excel-create.html

  • anton-khrit Profile Picture
    197 on at
    Re: Simply want to move a file from one folder in sharepoint to another document library.

    If you want to move SharePoint documents cross-site, you can use the Move SharePoint Document from Library action to move a file to nested structure of folder.

     

    This action is in "Plumsail SP" connector, which is a part of Plumsail Actions product.

     

    Note, it is a paid third-party solution. But it provides a rich set of actions that simplify working with SharePoint, permissions, and documents.

  • maximed Profile Picture
    11 on at
    Re: Simply want to move a file from one folder in sharepoint to another document library.

    Hello Glenda,

     

     

    you can use "get file content "  and then "Create File"  instead of "Copy File"

  • Glenda Profile Picture
    94 on at
    Re: Simply want to move a file from one folder in sharepoint to another document library.

    Hi guys, 

     

    Did anyone get the "Copy file" action working cross site? (same site collection)

    Works within one site, but not copying from a library in a top site, to a library in a sub site.

     

    Thanks, 

    Glenda

  • maximed Profile Picture
    11 on at
    Re: Simply want to move a file from one folder in sharepoint to another document library.

    Thank Max,

     

    For the French is:

     

    deletel.png

     

  • Community Power Platform Member Profile Picture
    on at
    Re: Simply want to move a file from one folder in sharepoint to another document library.

    Max!

    You saved me from pulling out my hair! I totally overlooked File identifier listed on the left. I also tried file name and path first.

  • Community Power Platform Member Profile Picture
    on at
    Re: Simply want to move a file from one folder in sharepoint to another document library.

    Hi,

    i just got the deletion working.

    I tried to use path and file names - failing with the errors posted before.

    Just use the "File identifier" like this (sorry, for the mix of german & english):

     

    deletion working.png

    The path to the document library or folder is not needed for the deletion when you use the "File identifier".

    "File identifier" is not working with "File name" as far as i can tell now.

     

    Regards,

    Max

  • manello Profile Picture
    2 on at
    Re: Simply want to move a file from one folder in sharepoint to another document library.

    Has anyone been able to figure out how to either delete or actually move a file from one location to another?

     

    Scenario:

     

    File is created / uploaded to folder Review

     

    Email is sent to reviewer

     

    Reviewer accepts or rejects

     

    If accept = Y, then copy file in folder Review to folder Accepted then delete file in folder Review

     

    If accept <> Y, then copy file in folder Review to folder Rejected then delete file in folder Review

  • DannyGT Profile Picture
    18 on at
    Re: Simply want to move a file from one folder in sharepoint to another document library.

    Error log from my revision to the delete flow is as follows...

    Outputs

    The error from when i set it up exactly as you suggested is as follows...

    Outputs
    • Headers
      { "Pragma": "no-cache", "x-ms-request-id": "55bd089f-14d3-457b-8bd5-b467488cc264", "Cache-Control": "no-cache", "Date": "Thu, 15 Dec 2016 17:49:30 GMT", "Set-Cookie": "ARRAffinity=c81df84e4118b050f97aee33a1ec0664c5319b97beadbb25f99be77f6eaecef3;Path=/;Domain=127.0.0.1", "Server": "Microsoft-IIS/8.0,Microsoft-HTTPAPI/2.0", "X-AspNet-Version": "4.0.30319", "X-Powered-By": "ASP.NET", "Content-Length": "208", "Content-Type": "application/json; charset=utf-8", "Expires": "-1" }
    • Body
      { "Message": "No HTTP resource was found that matches the request URI 'http://127.0.0.1/datasets/https%253A%252F%252Fcompanyname.sharepoint.com%252F/files/Shared Documents/Sales/Test 12-15-2016.docx'."
  • DannyGT Profile Picture
    18 on at
    Re: Simply want to move a file from one folder in sharepoint to another document library.

     

    BTW - i added the delete as per your screen shot and it fails, additionally, i tried doing it this way...

     

    test.jpg 

     

     

    And this also failed...

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >