Removes a previously attached document from an active workflow task. The document is detached from the task’s Attachments list.
/srv.asmx/RemoveWorkflowAttachment
/srv.asmx/RemoveWorkflowAttachment?authenticationTicket=...&taskId=...&documentPath=...&versionNumber=.../srv.asmx/RemoveWorkflowAttachment (form data)http://tempuri.org/RemoveWorkflowAttachment| Parameter | Type | Required | Description |
|---|---|---|---|
authenticationTicket |
string | Yes | Authentication ticket obtained from AuthenticateUser. |
taskId |
integer | Yes | Unique numeric ID of the task to remove the attachment from. |
documentPath |
string | Yes | Full infoRouter path of the document to remove (e.g. /Finance/Reports/Q1.pdf). |
versionNumber |
integer | Yes | Version number of the attached document to remove. Pass 0 to remove 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/RemoveWorkflowAttachment HTTP/1.1
Content-Type: application/x-www-form-urlencoded
authenticationTicket=abc123&taskId=4812&documentPath=/Finance/Reports/Q1.pdf&versionNumber=0
GET /srv.asmx/RemoveWorkflowAttachment?authenticationTicket=abc123&taskId=4812&documentPath=/Finance/Reports/Q1.pdf&versionNumber=0
versionNumber=0 to remove the current version attachment.versionNumber is specified, that exact version must be currently attached to the task or the call returns an error.