Skip to main content

As part of our expense approval process, I am trying to start with an Excel document in a document library, then run a workflow to create an item in a list and add the spreadsheet as an attachment to this item. I'm using the Call Web Service action, with the AddAttachment method. My SOAP editor code looks like this:

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://schemas.microsoft.com/sharepoint/soap/">

  <soap:Header>

  </soap:Header>

  <soap:Body>

    <m:AddAttachment>

      <m:listName>Expense Working List</m:listName>

      <m:listItemID>{WorkflowVariable:varListItemID}</m:listItemID>

      <m:fileName>{ItemProperty:FileLeafRef}</m:fileName>

      <m:attachment> FileData]</m:attachment>

    </m:AddAttachment>

  </soap:Body>

</soap:Envelope>

This seems to work properly, and seems to add the attachment to the newly created list item:

186803_pastedImage_0.png

However, when I open the list item using Nintex Forms, it doesn't show any attachments:

NintexFormsExpense.png

If I manually add attachments in the form, these show up:

186801_pastedImage_0.png

When I run the approval workflow on the item, which ends up using the "Copy to SharePoint" action to copy this item and its attachments to an archive document library, the attachment reappears successfully:

186802_pastedImage_2.png

Is there anything I'm missing that I need to do to make this attachment visible in Nintex Forms? The idea is that I want to be able to add receipts as attachments, in addition to the original spreadsheet expense form. We are using Nintex Forms 2010 v1.11

Thanks for any help.

Go to the attachment control settings and make sure the control is Connected to the attachment field. If it is, can you please add a screenshot of the control settings. Make sure the control is visible in all displays (New Edit View)


Thanks for the reply. The control is connected, and it accepts additional attachments manually added as well.

I thought I would check to see if there were any applicable version updates, and found this under the release notes for version 1.11.1.20 (June 20/2016):

Bug Fixes

    • Fixed an issue where attachments may be missing when only one attachment control is on the form and it's "default attachment" setting is not set (0019495)

After downloading and installing this product update, the attachments worked. I checked the control settings, based on Andrew's comment above, and noticed that the setting "Default Control" was set to "No", so perhaps setting this to "Yes" would have resolved the problem too.

Thanks for the help.


I don't see the addAttachment web method in 2010. WHat version are you using?


GM Andrew, I am looking to connect an Attachments Control to a list column in SP.  I don't see an option to connect to an item on the list as in other fields.  Is this a permissions issue?

 

1372i67A450F564B97EAC.png


Hi @dbonsma 


i am trying to run workflow on each document just to get the base64 binaries, i am not sure what i am doing wrong:


3836i10482E74FE85F7BE.png


Reply