Description

Returns an object that contains all the document objects that match the specified filter.

Syntax

Function FilterByProperty(Property As Object, propertyValues() As Object)

Parameters

Name

Data Type

Description

Property

Integer or String

The property ID or the property alias

PropertyValues

Array of String or Integers

An Array of Strings

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")


'filter by workflow state

Set result = relatedDocs.FilterByProperty("ExDOCS.Property.Suitability", Array("S1", "S2", "S3"))