.object and .collection Macros

These macro return a single object OID or a collection of objects as a concatenation of semi-colon terminated OIDs, and are generally used to create templates returning objects for use by other templates.

.collection (scope [,filter])
.object (scope [,filter])

The following parameters are available:

Parameter

Description

scope

Specifies the collection over which to iterate.

Type: simple-template returning a collection scope

filter

[optional] Specifies a filter condition to filter the collection.

Type: simple-template

Examples
.object(Attributes, (%.1:Code%>= a) and (%.1:Code% <= e))
Result:
C73C03B7-CD73-466A-B323-0B90B67E82FC
.collection(Attributes, (%.1:Code%>= a) and (%.1:Code% <= e))
Result:
C73C03B7-CD73-466A-B323-0B90B67E82FC;77E3F55C-CF24-440F-84E7-5AA7B3399C00;F369CD8C-0C16-4896-9C2D-0CD2F80D6980;00ADD959-0705-4061-BF77-BB1914EDC018;