Document Generation
...
Template-Resources
Record Collection Variable
4 min
introduction a record collection variable is a collection of records creating a record collection variable involves selecting the object type and setting conditions on the record fields to create a record collection variable, follow the steps below click 'resources'; the resource manager opens up in the 'new resource' pane, select resource type from the drop down as 'record collection variable' enter a label , and the api name will automatically populate select the object you can limit the number of output records using the ' limit rows ' option filters to determine which records are retrieved in a record collection variable , you must define filter conditions these conditions help narrow down records from the selected object based on field values and matching criteria begin by selecting the main operator that controls how multiple conditions will be evaluated and all conditions must be true or at least one condition must be true custom allows for advanced expressions (e g , (1 and 2) or 3) once the main operator is set, define one or more filter conditions each condition includes a field from the selected object a comparison operator a value to compare against condition field the field dropdown allows you to select the specific object field that should be used to filter or identify a record based on matching criteria (e g , email , firstname, status, custom field c) operator choose a logical operator from the dropdown equals matches records with a field exactly equal to the specified value (e g , for string, picklist, number, boolean) not equals matches records where the field does not equal the given value (e g , for string, picklist, number, boolean) greater than matches records where the field value is numerically greater (e g , for integer, decimals, currency) greater than or equals matches records where the value is greater than or exactly equal (e g , for integer, decimals, currency) less than matches records with a value lower than the specified input (e g , for integer, decimals, currency) less than or equals matches records with a value that is less than or exactly equal (e g , for integer, decimals, currency) in matches records where the field value is one of multiple specified values (e g , for picklist, multi select picklist) not in excludes records that match any of the specified values (e g , for picklist, multi select picklist) like matches records based on partial text (e g , for text, email) value the value field is used to specify what the selected field should be compared against this can take multiple forms, depending on your use case global variables field value from the same object record ({!$record id}) record (single) variables field value from related records global constants a direct input like the following {$globalconstant false} boolean false {$globalconstant true} boolean true {$globalconstant emptystring} represents a blank or empty value {$globalconstant currenttime} dynamically inserts the exact timestamp when the document is generated click + add condition to include additional filter rows the overall filter logic follows the main operator you selected (and/or/custom) to use the fields from the record collection variable, you will need to use the docid\ rllis8pv0jokww64pfavj or docid tylfcaekovmo3iypwf5b actions available in the template editor
