BlueCielo Meridian Enterprise 2018 VBScript API Reference
ImportPackage_ChangeState event
Occurs when the status of an import package is changed by a user.
Syntax
ImportPackage_ChangeState(Package, PreviousState, User)
Name | Description |
---|---|
Package |
An object that represents the import package. |
PreviousState |
The previous state of the import package represented by one of the AS_IMPORTPACKAGE_STATUS_VALUES constants. |
User |
The name of the user that changed the package status. |
Remarks
This event is intended for use with the Vault.SendNotification method to alert appropriate users about documents imported from a package. Because that method requires a Document object context, pass it a document object and not the package object.
Example
Sub ImportPackage_ChangeState(Package, PreviousState, User) Dim doc 'GlobalID of a document related to the package Set doc = Vault.GetDocument("{0F002100-998A-11E5-0000-56598CDC4B23}") doc.Log "The import package named " & package & " was changed from the " & _ PreviousState & " state by " & User Vault.SendNotification "PACKAGEMAIL", doc End Sub