AnsweredAssumed Answered

Is it possible to use AddAttachment web service in Workflow Tasks?

Question asked by benswee on May 27, 2015
Latest reply on Mar 30, 2016 by charlienothing

I am trying to use the AddAttachment web service in Workflow Tasks list but it is not working. I even hardcoded it for testing. See below:

 

<?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>Attachment List</m:listName>

      <m:listItemID>22</m:listItemID>

      <m:fileName>p90x3-half-hybrid.jpg</m:fileName>

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

    </m:AddAttachment>

  </soap:Body>

</soap:Envelope>

 

 

It makes me wonder if the AddAttachment web service doesn't work in Workflow Tasks and only work in a document library.

 

I can get it to work in a document library.

Outcomes