Use Direct Attribute Reference

During approval rules configuration, you may need to specify some transactional attributes. You can do this in two ways:

  • Use a direct attribute reference.

  • Use the attribute from the task payload object.

For example, consider the attribute Invoice Amount, which is a part of the Invoice Header object. Here's how you can specify the attribute in the approval rule.

Using Direct Attribute Reference

Accessing Attribute from Task Payload Object

Invoice Header.Invoice Amount
Task.payload.getInvoiceHeader1Response.result.Invoice Amount

The recommended best practice is to always use a direct attribute reference when creating approval rules. This optimizes the rule evaluation process at runtime.