Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Move files and folders in SharePoint based on a link

(0) ShareShare
ReportReport
Posted on by 11

Hi,

 

I have a SharePoint list that contains links to files and folders. Now I would like to move these files and folders in an automated  flow to another folder in SharePoint. Unfortunately the actions move file and and move folder do not accept links to identify the file or folder to be moved.

 

Wolfgang_S_0-1661332745863.png

Is there a way to do this?

 

Thanks for your help

Wolfgang

  • Verified answer
    Wolfgang_S Profile Picture
    11 on at
    Re: Move files and folders in SharePoint based on a link

    Hello okeks,

     

    thank you for your hint. 

     

    But I have found an easier way. In my special case, the pathname and filename are part of the link. So I decided to extract pathname and filename from the link and use these. Therfore I use the function split:

     

    split(split(triggerBody()?['DocumentLink'], '?') [0], 'ProjektarbeitI') [1]

     

    Wolfgang_S_1-1661784577050.png

    Wolfgang

     

  • okeks Profile Picture
    802 Super User 2024 Season 1 on at
    Re: Move files and folders in SharePoint based on a link

    You will have to use the Sharepoint API with the Send HTTP request to Sharepoint action.

     

    Here is a link to the documentation of the API: Working with folders and files with REST | Microsoft Docs

    and here is some documentation on how to use it inside Power Automate: Working with the SharePoint Send HTTP Request flow action in Power Automate | Microsoft Docs

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June 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 > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1