mahshid
Canvas Initiate

Add attachment to list from document library

Hello 
 I have a library that type of documents is ".pdf",after creation of each document, I want to create an item in the list ,and attach document to the current item.   Can you help me please?
"Sharepoint and Nintex 2016"

0 Kudos
Reply
5 Replies
nj
Design Canvas Artiste

Re: Add attachment to list from document library

To do this you would create a workflow in the document library and utilize the "create item" action: 

https://help.nintex.com/en-us/nintex2010/help/Workflow/RootCategory/Actions/Nintex.Workflow.CreateIt...

 

Ignore the versioning and how the form looks. It's from an older version but it wil still walk you through using it.

 

You could then have a text column or hyperlink column on the target list and put the URL of the document in it when creating the item.

 

 

 

0 Kudos
Reply
mahshid
Canvas Initiate

Re: Add attachment to list from document library

thank you nj.

 

but i want do it with call web service and attach document in the field attachfile in target list.

do you have any idea?

0 Kudos
Reply
eharris04
Workflow Hero

Re: Add attachment to list from document library

@mahshid Why are you trying to move a document to an attachment in a list. If you have already have the document stored in SharePoint, add your metadata to the document instead of moving it to a list. 

 

You may be complicating a lot by using call web service to move documents around in SharePoint just so they are associated differently. Not sure I see the full benefit there.

0 Kudos
Reply
Ferosa
Canvas Initiate

Re: Add attachment to list from document library

Hi Mahshid,

could you ever resolve your issue? I also have problems adding a document as list attachment in O365 

0 Kudos
Reply
MyNameIsAli
Design Dabbler

Re: Add attachment to list from document library

I wrote my own UDA to get the attachment in base 64 and then used another web service call to add attachment.
0 Kudos
Reply