Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Overview

Gets or sets the selected action on work item.

string myWorkItem.SelectedAction { get; set; }

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.

Example

Reading User Action

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

Example

Setting an Action

$WorkItem.SelectedAction = 'Approve';
  • No labels