Sets the user comment on a workflow task. The comment is stored with the task and visible to supervisors and other users with access to the workflow.
Pass an empty string to clear an existing comment.
/srv.asmx/SetTaskComment
/srv.asmx/SetTaskComment?authenticationTicket=...&taskId=...&comments=.../srv.asmx/SetTaskComment (form data)http://tempuri.org/SetTaskComment| Parameter | Type | Required | Description |
|---|---|---|---|
authenticationTicket |
string | Yes | Authentication ticket obtained from AuthenticateUser. |
taskId |
integer | Yes | Unique numeric ID of the task. |
comments |
string | Yes | Comment text for the task. Pass an empty string to clear the comment. |
<root success="true" />
<root success="false" error="Access Denied" />
The calling user must be the current task assignee.
Anonymous access is not permitted.
The task must be in one of the following states:
| Status | Allowed |
|---|---|
InProgress |
Yes |
DueDateChanged |
Yes |
NotStarted |
No |
Completed |
No |
Dropped |
No |
Reassigned |
No |
GET /srv.asmx/SetTaskComment
?authenticationTicket=3f7a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c
&taskId=4812
&comments=Reviewed+the+document.+All+sections+look+correct.
HTTP/1.1
Host: yourserver
POST /srv.asmx/SetTaskComment HTTP/1.1
Host: yourserver
Content-Type: application/x-www-form-urlencoded
authenticationTicket=3f7a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c&taskId=4812&comments=Reviewed+the+document.+All+sections+look+correct.
comments parameter are normalized before storage.| Error | Description |
|---|---|
[900] |
Authentication failed -“ invalid credentials. |
[901] |
Session expired or invalid authentication ticket. |
| Task not found | No task with the specified taskId exists. |
| Access Denied | Calling user is not the task assignee. |
| Document offline | The associated document is currently offline. |
| Task dropped | The task has been dropped. |
| Task reassigned | The task has been reassigned. |
| Task completed | The task has already been completed. |
| Task not started | The task is in NotStarted state. |