Re: Copy folder contents into a new folder
Hi all,
I need to do something very similar. I need to copy a Document Library folder of files from one SharePoint online Document Library to another.
I have tried the "Copy Folder" Action for SharePoint but keep getting a "Bad Gateway" error for some reason. Both Document Libraries are on the same site. One is a Source folder and the other is an Archive folder. I want to copy all of the Source files to the appropriate Archive folder. Plain and simple, or so it should be.
I have also tried your method above using the SharePoint "List Folder" Action where I can point to the correct Source folder, but I can't find an equavelent output from the previous step (you have "value" and all I can use is "body". Not sure if that is correct.
The last step, "Copy file" in the "Apply to each" section, I can use "Display Name" as a choice. I'm not sure how to end this flow though. Everything seems to work until it gets to the Copy file portion. The flow just sits there waiting for me to hit next and next for each file then at the end it errors with the "Bad Gateway" error again. The files did actually copy though so that is a very positive point for me. I just need some help automating this and eliminating the errors.
Any help will be greatly appreciated. Thanks.
Ed
