AddItem
EventNames:
AddItem_Restrictions
AddItem_Pre
AddItem_Post
Parameters
Type |
Name |
Description |
---|---|---|
item |
The item which should get / is added. |
|
bool |
successful |
Post: |
Unexpected Behaviour
AddItem event is raised when clicking in Vault Client on New Item… -> Selecting Category -> Ok.
Therefore you have only the data about the selected Category available and seriously not more.
Examples:
AddItem_Restrictions:
Register-VaultEvent -EventName AddItem_Restrictions -Action 'RestrictAddItem'
function RestrictAddItem($item) {
#Write event code here
}
AddItem_Pre:
Register-VaultEvent -EventName AddItem_Pre -Action 'PreAddItem'
function PreAddItem($item) {
#Write event code here
}
AddItem_Post:
Register-VaultEvent -EventName AddItem_Post -Action 'PostAddItem'
function PostAddItem($item, $successful) {
#Write event code here
}