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 / Move files and folders...
Power Automate
Unanswered

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

Categories:
I have the same question (0)
  • okeks Profile Picture
    802 Super User 2024 Season 1 on at

    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

  • Verified answer
    Wolfgang_S Profile Picture
    11 on at

    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

     

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard