evaluateExpression()
Overview
public boolean function evaluateExpression(
required string expressionId
, required string context
, required struct payload
, required struct configuredFields
)
Evaluates an expression, returning true or false, using the passed context, payload and field configuration.
Arguments
Name | Type | Required | Description |
---|---|---|---|
expressionId | string | Yes | The ID of the expression to evaluate |
context | string | Yes | The context in which the expression is being evaluated. e.g. 'request', 'workflow' or 'marketing-automation' |
payload | struct | Yes | A structure of data representing a payload against which the expression can be evaluated |
configuredFields | struct | Yes | A structure of fields configured for the expression instance being evaluated |