Skip to main content
Nintex Community Menu Bar

Attachment in Webservice call

  • January 17, 2018
  • 1 reply
  • 17 views

Forum|alt.badge.img

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

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • August 14, 2019
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