Hi All,
I have a requirement to copy documents and folders/subfolders across any levels within a document library.
Have a JSON variable source and destination. Destination path usually doesn't exist, hence using Create New folder action to create that path first.
Issue I am facing is documents/folders gets copied successfully to the destination, however nested folders/files come outside and gets copied in parent folder as well. Any idea where I m going wrong? Below is my flow screenshot.
Solved! Go to Solution.
Hi @Kumarrl2022 ,
Could you please tell me:
1. Which Action did the first Full path get from?
If it is obtained from [Get files (properties only)], the full path of the file should be obtained.
Do you want to move a certain folder to the newly created folder?
Here is a test for your reference:
Here are the folders and files that need to be moved:
This is the parent folder of the target folder:
Here is flow:
I assume you are using the path of [Get files (properties only)], it is recommended to use Folder path here.
The contents of the Folder path cannot be used to populate, we need to make some modifications.
slice(items('Apply_to_each_2')?['{Path}'],0,-1)
Here is result:
Best Regards
Cheng Feng
Hi @Kumarrl2022 ,
Could you please tell me:
1. Which Action did the first Full path get from?
If it is obtained from [Get files (properties only)], the full path of the file should be obtained.
Do you want to move a certain folder to the newly created folder?
Here is a test for your reference:
Here are the folders and files that need to be moved:
This is the parent folder of the target folder:
Here is flow:
I assume you are using the path of [Get files (properties only)], it is recommended to use Folder path here.
The contents of the Folder path cannot be used to populate, we need to make some modifications.
slice(items('Apply_to_each_2')?['{Path}'],0,-1)
Here is result:
Best Regards
Cheng Feng