Occurs when the status of an export package is changed by a user.
Syntax
ExportPackage_ChangeState(Package, PreviousState, User)
Name | Description |
---|---|
Package |
An object that represents the export package. |
PreviousState |
The previous state of the export package represented by one of the AS_EXPORTPACKAGE_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 exported from a folder. Because that method requires a Document object context, pass it a document object and not the package object.
Example
Sub ExportPackage_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 export package named " & package & " was changed from the " & _ PreviousState & " state by " & User Vault.SendNotification "PACKAGEMAIL", doc End Sub
Related concepts