AddFile
EventNames:
AddFile_Restrictions
AddFile_Pre
AddFile_Post
Parameters
Type |
Name |
Description |
---|---|---|
file |
The file which is / was added. |
|
parentFolder |
The folder where the new file is located. |
|
dependencies |
The file dependencies what this new file has. |
|
attachments |
The attached files what this new file has. |
|
fileBom |
The Bill of Materials of the newly checked-in file. |
|
bool |
successful |
Post: |
Examples:
AddFile_Restrictions:
Register-VaultEvent -EventName AddFile_Restrictions -Action 'RestrictAddFile'
function RestrictAddFile($file, $parentFolder, $dependencies, $attachments, $fileBom) {
#Write event code here
}
AddFile_Pre:
Register-VaultEvent -EventName AddFile_Pre -Action 'PreAddFile'
function PreAddFile($file, $parentFolder, $dependencies, $attachments, $fileBom) {
#Write event code here
}
AddFile_Post:
Register-VaultEvent -EventName AddFile_Post -Action 'PostAddFile'
function PostAddFile($file, $parentFolder, $dependencies, $attachments, $fileBom, $successful) {
#Write event code here
}