Constants are user-defined parameters that are accessible for all the journeys account-wide. 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 where the input fields are the most common.
To start creating the properties (name-value pairs), go to the Tools tab 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 that are 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: