Attachment in Webservice call

  • 17 January 2018
  • 1 reply
  • 6 views

Badge

Dear Community,

 

within a list workflow we call a webservice (SOAP 1.2 protocol) with parameter values read from list item.

We also would like to send the item attachments, but we don't understand how to encode that.

Here is a working sample code:

<Attachment>

<Content>/9j/4AAQSkZJRgABAQE..<snip>AYABgAAD/FFFFABRRRQB/9k=</Content>

<ContentType>image/jpg</ContentType>

<Filename>screenshot.jpg</Filename>

</Attachment>

Here we have to encode the file/image to Base 64 and provide the mime type accordingly.

So what how to get this dynamically created inside the workflow?

Best Regards

Rolf


1 reply

Userlevel 6
Badge +22
Hi,
The following thread has some solutions for this issue.
One is to copy the attachments to a document libray and then run the workflow on the library.
The files are automatically encoded using the [FileData] reference.
https://community.nintex.com/t5/Nintex-for-SharePoint/Is-it-possible-to-use-a-Nintex-workflow-in-SharePoint-to-copy/m-p/27244/highlight/true#M22439

Reply