AnsweredAssumed Answered

Add list item attachment using Nintex Workflow for Office 365

Question asked by p.mujumdar on Dec 9, 2015
Latest reply on Apr 4, 2018 by rdalle

How do I add an attachment to a new list item using Nintex workflow?

I tried using Web Request action to "Put" in content on following URL:

{Workflow Context:Current site URL}Lists/{Workflow Context:List Name}/Attachments/{Current Item:ID}/MyAttachment.txt

I verified that it creates a URL similar to attachments that are added manually. However, the workflow action fails with HTTP code 409: The remote server returned an error: (409) Conflict.

After a lot of trial and error - what I figured out was - this action fails to create a subfolder for 'current item-ID' under 'Attachments' folder.

If I add an attachment to this item while creating it, the workflow would execute when updating the item and it would create an additional attachment. But if there are no attachments for the item then the web-request action would fail with HTTP 409.

 

I tried using 'Office 365 Upload File' action by putting following as folder path

Lists\{Workflow Context:List Name}\Attachments\{Current Item:ID}

But it didn't work either. Workflow gets suspended with message:

RequestorId: abaf47f2-1538-33c4-0000-000000000000. Details: ServiceNoResponse

Event Type:  Comment

Event Description: The request cannot be processed due to internal error.

 

How do I add/upload an attachment dynamically to a list item?

Outcomes