UpdateFolderStates

EventNames:

  • UpdateFolderStates_Restrictions

  • UpdateFolderStates_Pre

  • UpdateFolderStates_Post

Parameters

Type

Name

Description

Folder[]

folders

The folders in Vault for which the lifefycle status changes/was changed.

Restrictions and Pre:
In these events you can get the future changes through the special properties _NewState, _NewLifeCycleDefinition and _NewComment.

Post:
In this event you can retrieve the information from previous events by using the properties _OldState and _OldLifeCycleDefinition.

Note: The Vault API doesn’t currently support folder comments, so _OldComment is always empty. Autodesk reserved this functionality for future use.

bool

successful

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

Examples:
UpdateFolderStates_Restrictions:

Register-VaultEvent -EventName UpdateFolderStates_Restrictions -Action 'RestrictUpdateFolderStates'

function RestrictUpdateFolderStates($folders) {
	#Write event code here
}

UpdateFolderStates_Pre:

Register-VaultEvent -EventName UpdateFolderStates_Pre -Action 'PreUpdateFolderStates'

function PreUpdateFolderStates($folders) {
	#Write event code here
}

UpdateFolderStates:

Register-VaultEvent -EventName UpdateFolderStates_Post -Action 'PostUpdateFolderStates'

function PostUpdateFolderStates($folders, $successful) {
	#Write event code here
}