Project Constants
  • 17 Sep 2024
  • 2 Minutes to read
  • Dark
    Light

Project Constants

  • Dark
    Light

Article summary

Overview

Create and manage constant values that can be reused in Flows and Rules within a Project. These are useful when the same data value needs to be changed in multiple places. The data is updated in one place rather than within each Designer Element that uses it. This practice ensures uniformity, reduces manual updates, and enhances efficiency by centralizing data and simplifying maintenance and updates while ensuring consistency across the entire Project.


Create Constants 

In the Projects Settings, open the Constants tab. In the Create New dialog on the right side, provide details for the Constant.

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 in the context of the project.
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 within the project.
List NameThe primary category or grouping under which the constant is organized. It should align with the project's name, establishing an association with the project.
List Category NameA subcategory under which the constant is classified. It aids in the organizational structuring of the constant, providing an additional layer of classification within the project.
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.

Managing Constants

Constants are stored within the Constants tab in Manage > Configuration > Variables > Constants. This page provides users with an interface to create and maintain project-level Constants. 

Altering the Flow Constant Name, List Name, and List Category Names of constants will disrupt all mappings where the constant is used. These broken mappings can be found in the Issues Tile on the Project Dashboard.


Reset Constants

The Reset Constants button clears all data in the Constants cache, as well as within the Lookup List Flows cache. Any users who make changes to the Lookup List Flow should press this button to see the changes implemented. 


Using Constants

Once established, Project Constants become accessible in the Projects they were created for and any dependent Projects, serving as reusable data points. To implement them, navigate to specific elements (Flows, Rules, etc.) and expand the Data Explorer to view the available project constants.



Was this article helpful?