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

copy files from a doc library (say test 1) to another (test 2) when user trying to upload or create document set in test 2

Jump to solution

Hi,

I would like to copy files from a doc library (say test 1) to another (test 2) when user trying to upload or create document set in test 2 document library . Files from document lib Test 2 should be saved into document set of Test 1.

Anyone could help me please? Thanks

Labels: (2)
0 Kudos
Reply
3 Replies
Highlighted
Automation Master
Automation Master

Re: copy files from a doc library (say test 1) to another (test 2) when user trying to upload or create document set in test 2

Jump to solution

Hi Swap,

Can you not set to Read permission the Test 2 Lib to avoid mistakes.

Regards,

Christophe

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: copy files from a doc library (say test 1) to another (test 2) when user trying to upload or create document set in test 2

Jump to solution

Thank you Christophe for your reply. I'll set to read permission the test 2 Lib, but I'm looking different solution.

Whenever user click on document set in Test 2 lib, workflow will import or copy all files from Test 1 lib.

Thanks.

Swap

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: copy files from a doc library (say test 1) to another (test 2) when user trying to upload or create document set in test 2

Jump to solution

Hi,

I've managed to resolve above issue by using below process.

1. Add Variables

2. Add Regular expression

Pattern -  ^(.*[\\\/])

Operation - select Replace Text

Input Text - {Common:ContextItemUrl}

store result in - textDocSetRaw

3. Add Build String

Text - fn-Replace({WorkflowVariable:textDocSetRaw}, %20, )

store result in - textDocSetName

4. Add Build string

Text - fn-Replace({WorkflowVariable:textDocSetName},&OpenIn=browser,)

store result in - textDocSetName

5. Add Query list

Editor Mode - select Query builder

List - <source list name>

Select XML encode inserted Tokens

Field -

          Select Encoded Absolute URL - store in varSourceColl

          Select Name - store in varSourceFileName

6. Add for each loop

Target collection - varSourceColl

Store result in - SourceURL

Index - CollIndex

7. Add Collection operation in loop

8. set variable in loop

9. Add Call web Service

Workflow Snapshot

I hope this will help.

Thanks,

Swap

View solution in original post

Reply