Establishing Constant Data (Global Variables)
- 03 Oct 2023
- 1 Minute to read
- Print
- DarkLight
Establishing Constant Data (Global Variables)
- Updated on 03 Oct 2023
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Overview
Decisions provide the ability to store constant values that can be reused in Flows called Global Variables. 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.
- Navigate to System > Designers > Lookup Lists And Constants in the Decisions Studio. Click ADD DEFINED CONSTANT from the Global Action Bar.
- From the Add Defined Constant window, enter "From Email Address" for the Flow Constant Name.
- Under the LOCATION category, enter "Email Address" in the List Name field and "Email Attributes" in the List Category Name field. The List Name should refer to the name of the Project with which the Constant is affiliated. List Category Name represents the organizational body for the list.
- Under the VALUE category, select Flow Constant Type and enter an appropriate String Value (admin@decisionscom). Arrays are not supported as constant data. Click SAVE.
Flow Constant Type Description Password Masked String value String String value Rich String String value with available formatting Int Integer value Decimal Decimal value Boolean Boolean (true/false) value String List List of Strings value - Click CREATE FLOW from the Global Action Bar in a Designer Project and select Flow. Provide a Name and click CREATE.
- Click the Done path of the Start step and select the Show PopUp step. Click ADD.
- In the Subject field, enter "Constant Data Value:" on the Properties panel. Click Unknown next to the Message field and select Select From Flow. Click Email Addresses > Email Attributes and select From Email Address. Click DONE.
- Connect the Done path to the End step. Click Save to save changes to the Flow.
Debug
- On the top action bar, click Debug. Click START DEBUGGING.
- After the debugger runs, the popup will display the subject and the email address from the Defined Constant.
Feature Changes
Description | Version | Developer Task |
---|---|---|
Adding a String List Option to the System Constants | 8.14 | [DT-030804] |
For further information on Flows, visit the Decisions Forum.
Was this article helpful?