Get¶
Gets a WorkItem instance by its ID.
1 | |
Parameters¶
string id
The ID of the work item.
Returns¶
The WorkItem instance if found; otherwise, null.
Remarks¶
This is useful when you need to refer to older work items while processing the current one. You only need to save the older work item's ID and pass it to the current one. For the previous work item in the workflow, you can use WorkItem.Previous.
To access a work item later on the workflow, the ID is stored on the form XML while that work item was active.¶
1 2 3 4 5 | |