cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Copy document from one doc library to specific folder in another document library

Jump to solution

Hi, I'm evaluating Nintex for O365 and this task sounds like something simple but ..

Copy Document action cannot copy to specific folder. I can use Office 365 upload file and this works but I have to enter my credentials and all documents that I copy have Created by set to credentials entered.

Labels: (1)
Reply
5 Replies
Workflow Hero

Re: Copy document from one doc library to specific folder in another document library

Jump to solution

Hi!

Sorry to say, but these are all the options you have. Well, in the end you can always use the "Call HTTP Web Service" or "Web Request" action to manually use the SharePoint REST endpoints to handle copying the file for you: Files and folders REST API reference 

Regards,

Tomasz

Regards, Tomasz Poszytek
0 Kudos
Reply
Workflow Hero

Re: Copy document from one doc library to specific folder in another document library

Jump to solution

Thanks, Tomasz .. I have managed to Copy file to specific folder using CopyTo method. The only problem is that this function just overwrites the file it already exists. Do you have an idea how to create a new version if the file already exists?

0 Kudos
Reply
Workflow Hero

Re: Copy document from one doc library to specific folder in another document library

Jump to solution

First you need to check whether the file exists, using a separate logic - ex. use the "query list item" to get an item, where name is equal to your filename - if in return you get a string - file exists. Other way not. Then create either "run if" or "conditional switch" to process your file copying.

Regards,

Tomasz

Regards, Tomasz Poszytek
0 Kudos
Reply
Workflow Hero

Re: Copy document from one doc library to specific folder in another document library

Jump to solution

It's an interesting one - I had to do this on-site recently. It almost looks like the API handles it, until you read in detail in MSDN about it - Files and folders REST API reference 

And of course there is no documentation about what "AllowBrokenThickets" means...

0 Kudos
Reply
Workflow Hero

Re: Copy document from one doc library to specific folder in another document library

Jump to solution

Stjepan D‌ if you have resolved your problem, please mark one from the above answers as correct, so that other users will know here is a verified solution

Regards,

Tomasz

Regards, Tomasz Poszytek
0 Kudos
Reply