Description

Creates a copy of an existing object including any files.

Syntax

Function CopyObjectWithFiles(Vault As Vault, ObjVer As ObjVer) As ObjVer

Parameters

Name

Data Type

Description

Vault

Vault

Vault object that contains the ObjVer

ObjVer

ObjVer

ObjVer of the the object to copy

Return

Returns the new ObjVer of the copied object. 

Note: The ObjVer returned does not work with M-Files API functions.

Example

'create Pentagon DOCS Script Library object

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


'Copy the object

Dim newObjVer : newObjVer = scriptLib.CopyObjectWithFiles(Vault, ObjVer)