I am getting a !BadRequest error when trying to use SharePoint Copy Folder to copy series of template folders (inside same SharePoint site). The source is "/Shared Documents/00 Current Event/Public Information Management" and the destination is "/Shared Documents/00 20211203 Flood - Whangaehu 01/Public Information Management". I am doing a Create folder previously to create 00 20211203 Flood - Whangaehu 01 (which works) and then a List Folder on /Shared Documents/00 Current Event to get the subfolders and then Apply to Each to try and Copy the folder structure. Must be a syntax issue but I cannot figure out where. The Flow and the error are listed below (same error for all 14 folders in 00 Current Events)
Solved! Go to Solution.
The folder I am copying it to 00 20211203 Flood - Whangaehu 01 exists. Are you suggesting that I need to create Public Information Management in order to copy to it. That seems more like Copy Files than Copy Folders?
Thanks for your help. I added a Create Folder call before the Copy Folder call and it worked (mostly). Fell over when the looping found a file in a folder and didn't know what to do. I must be missing something though as all I want to do is copy 1 set of folders (and its contents) into another folder and it shouldn't be this hard. I will keep trying
Got it working - as long as there were no documents in the top level of the folder that was being copied. Still seems odd though - most other languages you can just say "Copy folder A to folder B and you get /B/A" - no need to create the A folders first
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.