Run script

Operations can be specified in more detail using variables, generic features of VBScript, and M-Files API. For example, you can set consecutive numbers for different publication versions or add the send date for a document when it moves to the Sent state.

The following variables can be used in this script: VaultSharedVariables, MFScriptCancel, CurrentUserID, Vault, DisplayID, ObjVer, PropertyValues, StateID, SavepointVariables, TransactionCache, PropertyDef, and GetExtensionObject. For more information about variables, refer to Available VBScript Variables.

Note: The M-Files API documentation is available online: M-Files API. For more information about using VBScript in M-Files, see the How do I write VBScript code for M-Files purposes? tutorial.