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

How a copy list Item attachments to a folder

Jump to solution

I have SharePoint 365 and Nintex WorkFlow and Form 365, how a copy list item attachments to a specific folder???

What is the configuration actions???, I saw the videos in some blogs, but this videos are the Nintex 2013 version and the actions are diferents.

Help...

Thanks

FMS.

Labels: (1)
0 Kudos
Reply
16 Replies
Automation Master
Automation Master

Re: How a copy list Item attachments to a folder

Jump to solution

Hi Federico,

you can achieve this the following way:

  1. Use "Web Request" action to call SharePoints Lists.asmx Webservice. See this blogpost for further information: Web Request action for O365​. This is rather easy, at the end it should like this:

     2. Use a "Query XML" action to extract the attachment urls from the web service response. Action should look like this:

     "var_respContent" is the variable where I store the web request result. The XPath Query will then extract only the "Attachment"      elements (an URL string) of that xml and store it in my collection variable "var_attachmentsColl".

     3. Use a "For Each" action to loop through all items of your "var_attachmentsColl" collection.

    

     4. Inside the "For Each" loop use a "Regular Expression". We need this to get the Site-Relative URL from the attachment URL (which      is an absolute url), we will need this URL later. Be careful, you may need to adapt the pattern I used for your attachment URL.

    

     5. Use an "Office 365 upload file" action to copy the attachment to your library. be careful with the "Folder path" parameter. For me      providing "Shared Documents" didn't work, i had to provide the display name of the library which is "Documents".

And that's it. As a result, all the attachments will be copied to your Documents library.

Let me know if you have any further questions.

Cheers

Philipp

View solution in original post

Reply
Not applicable

Re: How a copy list Item attachments to a folder

Jump to solution

Hi Philipp,

Thanks for your reply.

but after working of 10hrs I got resolve it with some simple step.

for web request you have to configure.

and for uploaded file.

and provide the online share point user name and password.

any document you can upload in root site doc library it will redirect to the destination doc library.

Thanks,

Cheers

Reply
Not applicable

Re: How a copy list Item attachments to a folder

Jump to solution

Thanks Biswadev. You build a simple but effective workflow. 

cheers 

Reply
fmorales
Nintex Newbie

Re: How a copy list Item attachments to a folder

Jump to solution

Hi,

But, only works for document library, not for a customized list.

For the customized list, web request action, body, not there a "Current ítem".

FMS

Reply
fmorales
Nintex Newbie

Re: How a copy list Item attachments to a folder

Jump to solution

Hi, thanks for response.

I try to replicated your workflow, but I have an error in the results.

This is the structure of my workflow.

1-Web request configuration

2-Query XML

3-For each

4-Regular expression

5-Office 365 Upload file

0 Kudos
Reply
Automation Master
Automation Master

Re: How a copy list Item attachments to a folder

Jump to solution

Can you show us the error? Do you know where the error originates?

0 Kudos
Reply
fmorales
Nintex Newbie

Re: How a copy list Item attachments to a folder

Jump to solution

Hi,

First, the document attached in the list is not loaded in the document library required.

I created an check mark in the history of workflow for each variable used according to explication, for to check some possible error.

0 Kudos
Reply
fmorales
Nintex Newbie

Re: How a copy list Item attachments to a folder

Jump to solution

Hi,

My SharePoint structure is:

I have a custom list in the site 1, subsite 1, and I need upload the each attachments for each item in this list in the document library, but ubicated in the site 2, subsite 2.

Federico

0 Kudos
Reply
Automation Master
Automation Master

Re: How a copy list Item attachments to a folder

Jump to solution

Hey Federico,

please check your web request action again. On the screenshot I can see that you entered the URL of your List but you are supposed to enter the URL of the webservice. See my screenshots for a reference.

Regards

Philipp

Reply