GetPreviousObjVersWithStates
Description
Searches the version history for the specified states in descending order. i.e. V4, V3, V2, V1.
Syntax
Function GetPreviousObjVerWithState(Vault As Vault, LastestObjVer As ObjVer, WorkflowStates() As Object) As ObjVer
Parameters
Name |
Data Type |
Description |
Vault |
Vault containing the object to process |
|
ObjVer |
ObjVer of the object to process. |
|
WorkflowStates |
String / Integer |
Workflow State ID or Alias |
Return
Returns an array of ObjVer objects that match one of the supplied Workflow States. If no matches found, returns an empty array.
Example
'create Pentagon DOCS Script Library object
Set scriptLib = GetExtensionObject("PentagonDOCS.Core.ScriptLibrary")
Set result = scriptLib.GetPreviousObjVerWithState(Vault, ObjVer, Array("ExDOCS.State.Shared", "ExDOCS.State.Published"))