Skip to main content
Version: 2.2.1

newAttachment

This method attaches a file to a workflow activity. To use it, it is necessary to follow the standard documented below:

Java class
Requestweb\wwwroot\ws\java\workflow\NewAttachmentRequestType.java
Returnweb\wwwroot\ws\java\workflow\NewAttachmentResponseType.java

Request:

ID #RequiredDescription
WorkflowIDXWorkflow ID #
ActivityIDXActivity ID #
FileNameXFile name (with extension)
FileContentXBinary content of the file
UserIDUser ID
AttachmentIDAttachment ID #
AttachmentNameName of the attachment
SummarySummary

Request structure:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:workflow">
<soapenv:Header/>
<soapenv:Body>
<urn:newAttachment>
<!--You may enter the following 8 items in any order-->
<urn:WorkflowID>?</urn:WorkflowID>
<urn:ActivityID>?</urn:ActivityID>
<urn:FileName>?</urn:FileName>
<urn:FileContent>cid:279685291020</urn:FileContent>
<!--Optional:-->
<urn:UserID>?</urn:UserID>
<urn:AttachmentID>?</urn:AttachmentID>
<urn:AttachmentName>?</urn:AttachmentName>
<urn:Summary>?</urn:Summary>
</urn:newAttachment>
</soapenv:Body>
</soapenv:Envelope>

Return:

ID #Description
StatusMethod execution status. Its value may be:
SUCCESS: Method executed successfully
FAILURE: An error occurred during the method execution
CodeMethod return code
DetailMethod return detail
RecordKeyCode of the record added by the method
RecordIDID # of the record added by the method