MoveFolder

EventNames:

  • MoveFolder_Restrictions

  • MoveFolder_Pre

  • MoveFolder_Post

Parameters

Type

Name

Description

Folder

folder

The folder which should get / is moved.

Restrictions and Pre:
In Restrictions and Pre you have the future data set on this object like _NewFullPath.

Post:
In POST you can retrieve the previous information by using the properties _OldFullPath.

Folder

parentFolder

The new parent folder where the folder should / is moved

bool

successful

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

Examples:
MoveFolder_Restrictions:

Register-VaultEvent -EventName MoveFolder_Restrictions -Action 'RestrictMoveFolder'

function RestrictMoveFolder($folder, $parentFolder) {
	#Write event code here
}

MoveFolder_Pre:

Register-VaultEvent -EventName MoveFolder_Pre -Action 'PreMoveFolder'

function PreMoveFolder($folder, $parentFolder) {
	#Write event code here
}

MoveFolder_Post:

Register-VaultEvent -EventName MoveFolder_Post -Action 'PostMoveFolder'

function PostMoveFolder($folder, $parentFolder, $successful) {
	#Write event code here
}