Constants are user-defined parameters that are accessible to all the journeys throughout the account. These are JSON-like name-value pairs that are customizable as per the users' choice eliminating the manual efforts to specify the same input again and again.
For example, Email ID is the most common input field used across all the apps. Rather than specifying the same email address repeatedly, the Constants feature lets you create an Email ID as a name and [email protected] as its value. The Email ID property will get displayed as a data pill in the Data Tree Output under the Constants section of all journeys. You can then, simply drag and drop this property and the journey will send an email to the email address i.e., the value of the property:
This feature is most useful while dealing with long configuration-rich journeys having a common set of input fields.
To start creating the Constants (name-value pairs), go to the Tools menu and select Constants:
Click the Create a new constant button. A text field will appear beneath the Constant name and Constant value columns. Enter the name and its value of your choice and hit the Enter key:
You can create a maximum of 200 Constants per account accessible to the journeys. Two Constants with the same name cannot be created. Their names must be unique even though their values are the same.
To edit a Constant, click on the Constant name or value. The text field will appear allowing you to change the details. To delete a Constant, click the delete icon associated with it. Refer to the following image to understand in detail: