Description

Create new Object version copying the content from an existing object.

Syntax

Function NewVersionWithContent(sourceObjVer As ObjVer, destinationObjVer As ObjVer) As ObjVer

Parameters

Name

Data Type

Description

Vault

Vault

The Vault object provided by the event handler.

sourceObjVer

ObjVer

ObjVer of source object to copy content from. 

destinationObjVer

ObjVer

ObjVer of destination object

Return


Example

'create Pentagon DOCS Script Library object

Set scriptLib = GetExtensionObject("PentagonDOCS.Core.ScriptLibrary")


'get previous Workflow State ID

Dim newObjVer : newObjVer scriptLib.GetPreviousWorkflowStateID(Vault, SrcObjVer, DstObjVer)