Establishing Constant Data (Global Variables)
  • 29 Feb 2024
  • 1 Minute to read
  • Dark
    Light

Establishing Constant Data (Global Variables)

  • Dark
    Light

Article summary

Overview

Decisions provides the ability to store constant values called Global Variables that can be reused in Flows. These are useful when the same data value needs to be changed in multiple places. The data itself is updated in one place rather than within each Flow that uses the data. For example, a user may use a Global Variable constant for a corporate address, a customer service phone number, or a standard email address in the Send Email steps. 

Decisions does not allow users to create, edit, or delete Flow constants via service calls or steps. If this is a business requirement, see Custom Data Structure.

Example

The following example demonstrates creating a Global Variable used in the From field for an email address.

  1. Navigate to System > Designers > Lookup Lists And Constants in the Decisions Studio. Click ADD DEFINED CONSTANT.

  2. In the Add Defined Constant dialog, provide details for the Constant and then select SAVE.
    Constant SettingDescriptionConstants in the Data Explorer
    Flow Constant NameThis refers to the name assigned to the constant being created. Represent the purpose and usage of the constant.
    DescriptionThis field allows a detailed description of the constant. Clearly outline the significance and role of the constant, providing a comprehensive understanding of its intended use.
    List NameThe primary category or grouping under which the constant is organized.
    List Category NameA subcategory under which the constant is classified. It aids in the organizational structuring of the constant, providing an additional classification layer.
    Flow Constant TypeSignifies the data type of the constant value. It categorizes the nature of the data, ensuring compatibility and appropriate usage within the project. Options include Password, String, Rich String, Int, Decimal, Boolean, and String List.
    [Flow Constant Type] ValueThis indicates the specific value associated with the constant. The value remains constant throughout the project and can be reused across various elements. It typically represents vital data such as email addresses, contact numbers, or any other standardized information used within the project.



For further information on Flows, visit the Decisions Forum.

Was this article helpful?