GetRelatedDocuments
Description
Returns an object that contains all the document objects related by a common value of the specified property.
Syntax
Function GetRelatedDocuments(Vault As Vault, CommonProperty As Object, CommonValue As Object) As RelatedDocuments
Parameters
Name |
Data Type |
Description |
Vault |
The vault containing the documents to process |
|
CommonProperty |
Property ID or Alias. |
|
CommonValue |
Object |
Property value to search for |
Return
Returns a RelatedDocuments object. See RelatedDocuments object for more details.
Example
'create Pentagon DOCS Script Library object
Set scriptLib = GetExtensionObject("PentagonDOCS.Core.ScriptLibrary")
'get related documents
set relatedDocs = scriptLib.GetRelatedDocuments(Vault, "ExDOCS.Property.BaseDocumentNumber", "P001-EXC-ZZ-00-DR-A-0001")