newAttachment
This method attaches a file to a workflow activity. To use it, it is necessary to follow the standard documented below:
| Java class | |
|---|---|
| Request | web\wwwroot\ws\java\workflow\NewAttachmentRequestType.java |
| Return | web\wwwroot\ws\java\workflow\NewAttachmentResponseType.java |
Request:
| ID # | Required | Description |
|---|---|---|
| WorkflowID | X | Workflow ID # |
| ActivityID | X | Activity ID # |
| FileName | X | File name (with extension) |
| FileContent | X | Binary content of the file |
| UserID | User ID | |
| AttachmentID | Attachment ID # | |
| AttachmentName | Name of the attachment | |
| Summary | Summary |
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 |
|---|---|
| Status | Method execution status. Its value may be: SUCCESS: Method executed successfully FAILURE: An error occurred during the method execution |
| Code | Method return code |
| Detail | Method return detail |
| RecordKey | Code of the record added by the method |
| RecordID | ID # of the record added by the method |