Skip to content

WorkItem.SelectedAction

Overview

string WorkItem.SelectedAction { get; set; }
Gets or sets the selected action on work item.

Remarks

If no action selected, this property returns null.

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

While setting this property if specified action not found throws an scripting error.

Examples

Reading User Action

if ( $WorkItem.SelectedAction == 'Approve' ) {
   ...
}

Setting an Action

$WorkItem.SelectedAction = 'Approve';

See Also