Skip to content

Instructions

Gets or sets the instructions for the work item to display in user interfaces.

Type

string

Declaration

1
 string myWorkItem.Instructions

Remarks

Instructions are copied from the task instructions by default but can be changed if needed.

If the WorkItem.State is not in Waiting, Created, or Join, attempting to set this property is prohibited and throws an access denied error.

Examples

Set instructions based on the request

1
2
3
$WorkItem.Instructions = $Xml.EvaluateNumber('Total') > 10000
    ? 'The amount exceeds 10,000. Check the attached budget approval.'
    : 'Review the request and approve or reject it.';