UpdateCustomEntityStates
EventNames:
UpdateCustomEntityStates_Restrictions
UpdateCustomEntityStates_Pre
UpdateCustomEntityStates_Post
Parameters
Type |
Name |
Description |
---|---|---|
customObjects |
The updated / updating customObjects for a LifeCycle. |
|
bool |
successful |
Post: |
Unexpected Behaviour
For the UpdateCustomEntityStates_Post event the property _OldComment
will always be empty because the VaultAPI currently does not support Comments on CustomObjects (it is reserved for future use).
Examples:
UpdateCustomEntityStates_Restrictions:
Register-VaultEvent -EventName UpdateCustomEntityStates_Restrictions -Action 'RestrictUpdateCustomEntityStates'
function RestrictUpdateCustomEntityStates($customObjects) {
#Write event code here
}
UpdateCustomEntityStates_Pre:
Register-VaultEvent -EventName UpdateCustomEntityStates_Pre -Action 'PreUpdateCustomEntityStates'
function PreUpdateCustomEntityStates($customObjects) {
#Write event code here
}
UpdateCustomEntityStates_Post:
Register-VaultEvent -EventName UpdateCustomEntityStates_Post -Action 'PostUpdateCustomEntityStates'
function PostUpdateCustomEntityStates($customObjects, $successful) {
#Write event code here
}