UpdateItemStates

EventNames:

  • UpdateItemStates_Restrictions

  • UpdateItemStates_Pre

  • UpdateItemStates_Post

Parameters

Type

Name

Description

Item[]

items

The updated / updating items for a LifeCycle.

Restrictions and Pre:
In Restrictions and Pre you have the future data set on this object like _NewComment, _NewLifeCycleDefinition and _NewState.

Post:
In POST you can retrieve the previous information by using the properties _OldComment, _OldLifeCycleDefinition and _OldState.

bool

successful

Post:
The information whether the Web Service call was successful or not is only available in Post events.

Examples:
UpdateItemStates_Restrictions:

Register-VaultEvent -EventName UpdateItemStates_Restrictions -Action 'RestrictUpdateItemStates'

function RestrictUpdateItemStates($items) {
	#Write event code here
}

UpdateItemStates_Pre:

Register-VaultEvent -EventName UpdateItemStates_Pre -Action 'PreUpdateItemStates'

function PreUpdateItemStates($items) {
	#Write event code here
}

UpdateItemStates_Post:

Register-VaultEvent -EventName UpdateItemStates_Post -Action 'PostUpdateItemStates'

function PostUpdateItemStates($items, $successful) {
	#Write event code here
}