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 a folder in Sh...
Power Automate
Unanswered

Copying a folder in Sharepoint when you only have a 'copied link' URL in a list

(0) ShareShare
ReportReport
Posted on by 195

Hi,

On my SharePoint list, I have a column called 'Link to related documents' where users manually enter a URL to a folder of documents they created on the Teams site. These links when you copy and paste into a browser all are correct and work - appearing such as https://XXXX.sharepoint.com/:f:/s/XXXXX/ABCDEFGHEJ?e=ABCD


As part of an archiving flow I have so far successfully moved and deleted items 6 months and older to a different SharePoint archive list. I also want to copy (and put all these copied files into a different archive area) and delete the files in the folder of the URL manually entered. These folders also occasionally contain subfolders within. originally I had used the 'Copy folder' step and had used the dynamic field of 'Link to related documents' in the folder to copy field, resulting in an error "Failed to verify the existence of source object" due to it not being a file identifier in this field which is required.

 

The trouble I am having is getting the file identifier of the folder from the URL that was manually entered on the list. I have tried creating a string variable, and then 'get file content using path' but it seems to keep running for over 10 mins and times out which is strange as in my test environment there is only one list item it is apply it to currently!

 

I've tried looking around the forum but nothing is solving my issue - specifically that the SharePoint List field is a manually entered URL (which is taken from copying link to the folder in Teams).

 

Thanks for any assistance you can provide 🙂 

 

roxy1_0-1672975608592.png

roxy1_1-1672975645663.png

 

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

    Hi @roxy1 

    I think you are trying to pass folder link in Get file content using path Action you have to pass file link for this.

  • roxy1 Profile Picture
    195 on at

    Hi @Amit - but it is a folder link I need to use, as the folder contains lots of documents (sorry if I've misunderstood!). Each staff members manually copies and pastes the folder link from Teams.

     

     

  • roxy1 Profile Picture
    195 on at

    Hi @Amit_Sharma did you have any other suggestions that may help? Thank you!

  • roxy1 Profile Picture
    195 on at

    I'm still stuck on this!

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

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard