---
title: "System Constants"
canonical: "https://help.agiloft.com/space/HELP/43714210/System+Constants"
format: markdown
---
System constants are variables defined for the entire knowledgebase that return a value based on the system configuration. For example, the `$global.daylightServer` constant returns true or false depending on whether the server is configured to account for daylight saving time. If predefined, system constants are used in read-only mode, but you can also define your own system constants and edit their settings, similar to [global variables](https://agiloft-public.atlassian.net/wiki/spaces/HELP/pages/43714216). For instance, you can create a system constant that stores a default value or file for reuse in multiple areas of the system.

System constants use the prefix `$global`. A full list of system constants is available in the Global Variables tab of the [Formula Help wizard](https://agiloft-public.atlassian.net/wiki/spaces/HELP/pages/43715029/Formulas#FormulaHelp).

> ℹ️ **Example**
> ℹ️ 
> ℹ️ System constants are often paired with a [Script action](https://agiloft-public.atlassian.net/wiki/spaces/HELP/pages/43715131) to perform some task. For example, you could have a single script running on a server with multiple KBs that makes use of different values depending on which KB is running the script. Imagine you want a Script action that takes the values from a record in Agiloft and pushes them into an external system to generate a record there. Imagine also that each KB has its own matching external system.
> ℹ️ 
> ℹ️ To accomplish this, you might create a Text Constant global variable that provides the address of the external system on a per-KB basis, inserting the value of that variable into your script.

# Creating a System Constant

<span style="color: #4d4d4d">New system constants are created on the Customized Variables tab of the </span><span style="color: #4d4d4d">[Global Variable wizard](https://agiloft-public.atlassian.net/wiki/spaces/HELP/pages/43714216/Global+Variables#GlobalVariableWizard)</span><span style="color: #4d4d4d">. </span>

<span style="color: #4d4d4d">To create a new system constant: </span>

1. <span style="color: #4d4d4d">Click the </span><span style="color: #4d4d4d">**Setup**</span><span style="color: #4d4d4d"> gear in the top-right corner and go to </span><span style="color: #4d4d4d">**System > Manage Global Variables**</span><span style="color: #4d4d4d">.</span>
2. <span style="color: #4d4d4d">Go to New and </span>s<span style="color: #4d4d4d">elect the type of system constant you want to create. The available types correspond to field data types, such as Choice constants, Currency constants, and Text constants. The Manage Global Variables and Constants dialog appears after you make your selection.</span>
3. Configure the system constant settings as desired. Because the <span style="color: #4d4d4d">Manage Global Variables and Constants dialog is the same dialog used for global variables</span>, see [Edit a Global Variable](https://agiloft-public.atlassian.net/wiki/spaces/HELP/pages/43714216/Global+Variables#EditaGlobalVariable) <span style="color: #4d4d4d">for more information on the configuration settings. </span>

> 📝 If you create a new system constant and choose Yes under Supports Localization, you can save different values of the variable for different languages. Upon switching languages in the system, the variable's value is removed and you can define a new value for the selected language.

4. <span style="color: #4d4d4d">Click Finish.</span>

#### Related articles

> Macro (contentbylabel)