Skip to main content
Skip table of contents

evalResolved

A logic command that evaluates an EL-expression and then evaluates the resolved value of that expression, storing the resolved value of that second evaluation into the variable context.

The value attribute should resolve into a String that will then be treated as the expression of the second evaluation. If that String doesn't contain the ${ and } characters, the String is automatically wrapped between those to make it a valid expression. 

Attributes

var

Required

Value type

EL-evaluated

Yes

String

No

Defines the name of the variable whose value the resolved value of the second evaluation becomes. 

value

Required

Value type

EL-evaluated

Yes

String

Yes

Defines the value that is then evaluated to produce the result value. The resolved value is expected to be a String that will interpreted as an EL-expression. 

Examples

The evalResolved command is useful if you've somehow ended up having an EL-expression String stored in a variable, and you'd like to evaluate that expression. One scenario in which this can occur is if you put an expression as the value of a field of a Salesforce record, then query that record with the field in the logic, producing a Data Item with the field's entry then containing the expression String.

CODE
<set var="result" value="${mainRecord.Expression_field__c}">=> result is String "${1 + 2}"<evalResolved var="result" value="${mainRecord.Expression_field__c}">=> result is Number 3
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.