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"
To do this you would create a workflow in the document library and utilize the "create item" action:
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.
@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.