Use cross-table fields in Condition Editor

Cross-table fields, which are defined by a reference record, are the fields of related tables. The table relationship is maintained by the Relation Manager in Service Manager. You can use cross-table fields in Condition Editor to configure various conditions.

To configure the cross-table fields as part of a condition, you can select the cross-table field names in Condition Editor. However, using cross-table fields might be time-consuming because the system needs to prepare the variable of the reference record at run time. For example, an incident record has the field “Contact”, which refers to the Contact record. You can configure the Rule condition to use the Location of the Contact record directly, as shown below:

At run time, the expression is evaluated to something as follows:

location in $L.file.contact.name.contacts.contact.name="Asia"

The variable $L.file.contact.name.contacts.contact.name is prepared by the rule engine.

If you use the Condition in your own scenario, make sure to invoke the JavaScript method below at run time before evaluating the condition expression, which automatically prepares the cross-table reference record for you:

lib.Workflow.initVarForCondition(conditionXml);