AnsweredAssumed Answered

AddAttachment web service not working

Question asked by bill on Feb 9, 2017
Latest reply on Feb 14, 2017 by bill

I am Trying to use the Nintex Call web service workflow actions AddAttachment web method to attach a library contained document (where the workflow is running, to a form/document in a list. The library containing the document is hidden from users but the list documents are visible. Once the document is attached, it will be deleted from the library. The code is:


<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="" xmlns:soap="" xmlns:m="">
      <m:listName>HR Nominations</m:listName>


where "HR Nominations" is the name of the list containing the Nintex form/document resides and "ItemProperty:ID is the ID of the document to be attached. This looks correct, but throws the following error:


Failed to invoke web service. Error returned from server: <soap:Fault xmlns:soap=""><faultcode>soap:Server</faultcode><faultstring>Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.


Any ideas or suggestions? There could be one or more documents, of various formats, to be attached.


The application is one where employees are nominated for various awards on a public site where the nomination form is available, and nominations bight be supported by attached documents. The nomination form, when saved, starts another workflow via a "Call web service" action. This workflow copies the form information to the private HR site for further action. The attachments are copied to a hidden library on the private HR site. The original, public record is then deleted. Personnel in HR receive an email message letting them know that a nomination has been submitted. (Once the supporting document(s) have been attached to the nomination, it/they are deleted from the hidden library.


Thanks for your help!