Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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

 

  • roxy1 Profile Picture
    195 on at
    Re: Copying a folder in Sharepoint when you only have a 'copied link' URL in a list

    I'm still stuck on this!

  • roxy1 Profile Picture
    195 on at
    Re: Copying a folder in Sharepoint when you only have a 'copied link' URL in a list

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

  • roxy1 Profile Picture
    195 on at
    Re: Copying a folder in Sharepoint when you only have a 'copied link' URL in a list

    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.

     

     

  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at
    Re: Copying a folder in Sharepoint when you only have a 'copied link' URL in a list

    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.

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 > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492