WorkItem.SelectedAction
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';
Copyright © 2010 - 2023 Emakin. All rights reserved.