Constants are created at the application level.
A set of constants can be utilized in various components, including:
Templates
External URLs
Webhooks
Both authentication and data requests are supported.
Constants can be used in the following areas:
URL Editor
Key-Value Pairs in Query, Header, and Content
For any constant created, the Constant ID must adhere to the following rules:
Cannot be empty
Must be unique (case insensitive)
Allowed characters: A-Z, a-z, 0-9, -, _
Cannot start or end with "-"
No spaces allowed
Maximum length: 20 characters
Values of constants will not be transferred to other environments through deployment. Users can edit and encrypt the value of constants in other environments unless the constant is locked in the development environment.
The value of a constant can be encrypted. Please note that encryption is irreversible; once encrypted, the value cannot be decrypted and displayed in plain text.
1.At App Management > Developing Environment, on the side menu, click Constants.
2.Click the ‘+’ button to create a new constant.
3.Fill in the Constant ID and the required information, then click 'Submit' to continue.