cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Nintex Newbie

Copy Folder and Files Inside Folder

Hello,

I want to copy folder and files inside folders from one document library to another document library in same site.I used both of the Vadim Tabakman‌ solutions: Nintex Workflow - Copying a Document Library Folder and Contents - Vadim Tabakman, and Nintex Workflow - Move Documents and Preserve Version History - Vadim Tabakman but i have failed to copy the items inside the folder. Below is the screen shot of the workflow:

workflow_diag

i am using web request inside for each loop with below settings:

URL: web URL/_vti_bin/_vti_aut/author.dll

POST

content type: application/x-www-form-urlencoded

Headers:

Name: X-Vermeer-Content-Type

Value: application/x-www-form-urlencoded

Text

method=move+document:14.0.2.5420&service_name={Common:WebUrl}&oldUrl={WorkflowVariable:SourceURL}&newUrl={WorkflowVariable:DestinationURL}&url_list=[]&rename_option=findbacklinks&put_option=overwrite,migrationsemantics

Labels: (2)
Reply
8 Replies
Highlighted
Nintex Newbie

Re: Copy Folder and Files Inside Folder

I have also reviewed those solutions from Vadim Tabakman‌ and am having issues copying a folder and contents into another folder on the same site in a different library. In my situation, the destination folder already exists, the name of which matches a piece of metadata in for multiple folders in another library. I've noticed a couple of strange things. When I use the query action to query IDs for the matching folders, I set content type = to Folder and the collection is empty, despite the folders being present. I have attempted with and without recursive selected as well as with and without content type = folder. Secondly, I'm using a web service call for CopyIntoItemsLocal. I have validated both the source and destiniation URLs and both redirect to the expected pages, however the web service call does not move the folders nor does it move any files. I have replaced the default 'string' values with the correct variables for source and destination paths and have validated that the URLs being generated do in fact work. Any assistance is much appreciated.

WFScreenShot.png

 

0 Kudos
Reply
Highlighted
Automation Master
Automation Master

Re: Copy Folder and Files Inside Folder

@brightlight  @premanuel ....I had the similar issue and we end up creating a different library and using Copy to SharePoint action we copied the item and then workflow will delete the original item. In short instead of Move, we are doing copy and delete.

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Copy Folder and Files Inside Folder

Below is a nice solution that i followed to get it working, i hope that helps!

https://community.nintex.com/t5/Nintex-for-SharePoint/Copy-list-item-from-one-site-to-another-includ...

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Copy Folder and Files Inside Folder

@brightlight The link to the solution you recommend seems to be for attachments and not folders and folder content.  Maybe I'm missing something.

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Copy Folder and Files Inside Folder

Yes @kwilliams, that was for the list item attachments, i somehow got swayed from the initial purpose as that title says what you are asking.

I am pretty sure you can use Copy to SharePoint action.

You may also find THIS link helpful.

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Copy Folder and Files Inside Folder

@brightlight Thank you, I will take a look at these links.

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Copy Folder and Files Inside Folder

@premanuel I'm having this exact same issue. In face, the workflow with the web call says it completed and still nothing has been copied over to the second library. I have files in folders. Ideally I would just like to move the whole folder and it's contents over the other library, but I haven't found any solutions that work that way.

Did you ever find a solution?

 

Thanks

Kassie

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Copy Folder and Files Inside Folder

You need to use RecursiveAll, otherwise it won't copy nested files and folders

0 Kudos
Reply