Use the attachment function to send the value of an attachment field (the actual document) via Web Services by adding a MIME attachment to the SOAP message. This function is only useful in the XML modality of Web Services.
NOTE This function is designed to work only in a Web Services message used in the XML modality of invoke or reply; it is not for general use in other areas of a workflow definition.
Function | What it does |
---|---|
Adds the contents of an attachment field to a Web Services message. |
attachment (attachment_field_name)
For example, in the outgoing message for an Invoke system function, you could insert the contents of a document specified by an attachment field, MyAttachment, into a string field:
....
"<DataFields>"+
"<Data1>"+ attach(MyAttachment) + "</Data1>"+
"<Data2>"+ _string + "</Data2>"+ .....