Use variables in Orchestrated campaigns variables-oc

How to set variables set

In an Orchestrated campaign, you can work with variables, i.e. values that drive targeting, Test conditions, and other canvas logic. Those values can come from two places:

NOTE
For now, variables support text values only.
Variables drive canvas logic (rules, conditions) and cannot be used for message personalization.

Use variables in the canvas use

Variables are available in the following places on the canvas:

  • Rule builder — Open the expression editor for a rule and use the event variables picker to select a variable and insert its reference into your expression. Learn how to edit expressions

    In the example below, a variable named brand was passed in, and the rule uses it as a filter condition.

    Rule builder condition using a brand variable from event variables {modal="regular"}

  • Test activity — When you define a condition, the Condition type drop-down lists all variables in scope alongside Population count. Select a variable to use it as the basis for a test branch. Learn how to configure the Test activity

    In the example below, the channel variable is used to route the flow to different transitions depending on its value.

    Test activity condition type drop-down listing the channel variable {modal="regular"}

recommendation-more-help
journey-optimizer-help