Wednesday, October 29, 2008

How to use SharePoint Workflow UpdateTask

Update task activity in SharePoint workflow use to update task without getting locked. But there is a issue when changing task user for the task item.

In order to Update Task, follow these steps:

Follow below settings for UpdateTask Activity:

  • Correlation Token: Same as of Create Task activity
  • Task ID: Same as of Create Task activity

Insert a Code Activity before Update Task activity.

In Code Activity, write below code:

Code Snippet

updateTask.TaskProperties.AssignedTo = @"domain\username";

Note : This is for the change task user (Approver)

No comments: