Bragi Docs Help

Variables

Variables in Bragi store small, environment-specific values that can be injected into Code configs. They’re useful for storing configuration values like API URLs, usernames, passwords, numbers, or dates that vary between Develop, Test, and Production environments.

Field

Description

Name

Identifier for the variable (used when retrieving it in code).

Type

Data type of the variable (int, bool, decimal, DateTime, string).

The New Variable screen

Each environment assigns its own Value for the variable. When a Code config runs, Bragi automatically uses the value for the current environment.

Retrieving Variables in Code Configs

To retrieve a variable in a Code Config, use the GetVariable (bragiCodeUtil.GetVariable<T>(string name)) method.

This method returns the variable value in the specified type T.

09 March 2026