Skip to main content

Notifications

Power Automate - Building Flows
Answered

Copy document to SharePoint document set

(0) ShareShare
ReportReport
Posted on by 27

Hi,

I am currently stuck at the end of a one of my 'more useful' flows :). I'm trying to re-use information entered into a SharePoint list, including the attached files (if any) to create a document set somewhere else and then upload the attachments (if any) to that newly created document set.

All is well until the 'copy' action runs - it fails with the error "Unsupported list type for copy/move. Copy/move can only be operated in Document Library." I can confirm that the destination folder is the URL to an existing document set in a document library.

VincentVH_0-1607674938677.png

 

I see two possible issues, but I don't see the solution for either one:

1. Either the way my Destination Folder is construed is not recognized by Power Automate (using this URL in a browser works because of a redirect in the background) - should I generate the URL in another way? Please don't tell me I have to first fetch the ID, FolderCTID, List, RootFolder AND RecSrc 🙂

2. Or I just cannot use this copy-action and should resort to something else (HTTP POST?) - I couldn't find any online resources (the web seems filled with instructions to create or move document sets)

 

Thank you for any help or pointer!

  • Re: Copy document to SharePoint document set

    What was your intermediate step?

  • Verified answer
    VincentVH Profile Picture
    VincentVH 27 on at
    Re: Copy document to SharePoint document set

    Problem solved. The (destination) Folder Path was set incorrectly. I used an intermediate action to get the 'Full Path' of the document set and then used that as the Folder Path. Errors gone, me happy.

  • VincentVH Profile Picture
    VincentVH 27 on at
    Re: Copy document to SharePoint document set

    Attempt to work around the failing copy-action: "get attachement content" + "create file"

    VincentVH_0-1607677260872.png

    This one fails with a "File Not Found" error. That seems to imply that indeed the destination folder is not resolved correctly, or am I wrong?

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard