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

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
Workflow Hero

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

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
Workflow Hero

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
Not applicable

Re: How a copy list Item attachments to a folder

Jump to solution

Hi Federico,

for update any list item you have to use.

o365 update item .

Cheers

Biswadev

Reply
Workflow Hero

Re: How a copy list Item attachments to a folder

Jump to solution

‌ - 

Glad you were able to get it working!

Please be sure to mark your question as answered so other users can quickly see how you resolved the problem.

Thanks

Reply
Not applicable

Re: How a copy list Item attachments to a folder

Jump to solution

Hi Jesse,

I did not found the action for this, can you help me in that ?

Sincerely,

Biswadev Prasad Mishra

Reply
Workflow Hero

Re: How a copy list Item attachments to a folder

Jump to solution

My apologies, I thought you were able to solve the issue you were facing when you posted your simple 2 step workflow.

If you are looking for the Update Items action, it is located under the Libraries and List section:

Reply
Workflow Hero

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