Attaches a document to an active workflow task. The attached document becomes visible in the task’s Attachments list and is accessible to the task assignee and supervisors.
/srv.asmx/AddWorkflowAttachment
/srv.asmx/AddWorkflowAttachment?authenticationTicket=...&taskId=...&documentPath=...&versionNumber=.../srv.asmx/AddWorkflowAttachment (form data)http://tempuri.org/AddWorkflowAttachment| Parameter | Type | Required | Description |
|---|---|---|---|
authenticationTicket |
string | Yes | Authentication ticket obtained from AuthenticateUser. |
taskId |
integer | Yes | Unique numeric ID of the task to attach the document to. |
documentPath |
string | Yes | Full infoRouter path of the document to attach (e.g. /Finance/Reports/Q1.pdf). |
versionNumber |
integer | Yes | Version number of the document to attach. Pass 0 to attach the current (latest) version. |
<root success="true" />
<root success="false" error="Error message" />
The calling user must be the task assignee or a workflow supervisor.
POST /srv.asmx/AddWorkflowAttachment HTTP/1.1
Content-Type: application/x-www-form-urlencoded
authenticationTicket=abc123&taskId=4812&documentPath=/Finance/Reports/Q1.pdf&versionNumber=0
GET /srv.asmx/AddWorkflowAttachment?authenticationTicket=abc123&taskId=4812&documentPath=/Finance/Reports/Q1.pdf&versionNumber=0
versionNumber=0 to always attach the current version of the document.versionNumber is specified, that exact version must exist on the document or the call returns an error.