Global Constants
Use Case
A global constant is a data point which takes a static value. The relevance of using global constants is as follows:
- Workflow designer can create a global constant at an app level and use it under multiple action nodes. If the designer has to update the value for this constant, it can simply do it from a single place, instead of visiting several nodes.
- Migration: At the time of app migration, the global constant value can be updated for target bot, allowing user to make bulk changes in the app as per the target bot requirement.
Creating & using global constants
-
Under specific application, you can navigate to 'Settings' within an application to render Global Constants.
-
You can view all the created constants under the Global Constants section.
-
You can click on Add constant CTA to create a new constant. To create a new constant a unique label/name for the constant needs to be specified along with a value which is considered as String.
-
Using global constants under nodes
-
You can use global constants under Action, Function and Async Callback node.
-
In order to use a global constant, render Data Center (use double curly braces to render Data Center) and either type the constant name or expand Global Constants section to select a Global Constant by clicking on its label.
-
Viewing Global constant references
-
Against a global constant, you can also view the references of the global constant, i.e, at which all nodes a global constant is being used.
-
You can click on View references CTA to render all the nodes where a global constant is being used.
Editing & Deleting a global constant
- You can always edit the value of a global constant, whenever required.
- You cannot edit the label of a global constant, if it has node references.
- You can only delete a global constant, if it does not have any node references.
Updated about 1 month ago
