Using Expressions with Variables

Advanced users who have knowledge of the JavaScript language can use expressions to perform string, mathematical, or other advanced operations on variables.

Syntax

The valid syntax to use is as follows: 

<%Expression%>

The expression that is enclosed by <% and %> is evaluated by the JavaScript engine. There must be no space characters just after the starting <% or just before the ending %>.

Examples of valid syntax are as follows:

Examples

You can use expressions in instances where a variable reference is used to read a variable's value. The following procedures give examples of where you can implement them in Integration Builder.

Objects that can be used in expressions

Valid evaluation result types

All built-in JavaScript objects can be used in the expression, but not all of them are valid expression evaluation results. The following JavaScript types are accepted as valid: