CheckinFile
EventNames:
CheckinFile_Restrictions
CheckinFile_Pre
CheckinFile_Post
Parameters
Type  | 
Name  | 
Description  | 
|---|---|---|
file  | 
The file which is / was checked in.  | 
|
dependencies  | 
The file dependencies what this new checked-in file has.  | 
|
attachments  | 
The attachments what this new checked-in file has.  | 
|
fileBom  | 
The Bill of Materials of the checked-in file.  | 
|
bool  | 
successful  | 
Post:  | 
Unexpected Behaviour
CheckinFile event is not raised when a file is added to Vault for the first time. Instead the AddFile event is raised.
Examples:
CheckinFile_Restrictions:
Register-VaultEvent -EventName CheckinFile_Restrictions -Action 'RestrictCheckinFile'
function RestrictCheckinFile($file, $dependencies, $attachments, $fileBom) {
	#Write event code here
}
CheckinFile_Pre:
Register-VaultEvent -EventName CheckinFile_Pre -Action 'PreCheckinFile'
function PreCheckinFile($file, $dependencies, $attachments, $fileBom) {
	#Write event code here
}
CheckinFile_Post:
Register-VaultEvent -EventName CheckinFile_Post -Action 'PostCheckinFile'
function PostCheckinFile($file, $dependencies, $attachments, $fileBom, $successful) {
	#Write event code here
}