Date: Fri, 29 Mar 2024 04:48:28 -0700 (PDT) Message-ID: <1119642377.1093.1711712908435@ip-172-30-17-85.ec2.internal> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_1092_1327788838.1711712908426" ------=_Part_1092_1327788838.1711712908426 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
System constants are variables defined for the entire knowledgeb=
ase that return a value based on the system configuration. For example, the=
$global.daylightServer
constant returns true or false dependi=
ng 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 al=
so define your own system constants and edit their settings, similar to global variables. For instance,=
you can create a system constant that stores a default value or file for r=
euse in multiple areas of the system.
System constants use the prefix $global
. A full list of sys=
tem constants is available in the Global Variables tab of the Formula Help wizard.
Example
System constants are often paired with a Script action to perform some task. For example, you could ha= ve 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 w= ant a Script action that takes the values from a record in Agiloft and push= es them into an external system to generate a record there. Imagine also th= at each KB has its own matching external system.
To accomplish this, you might create a Text Constant global variable tha= t provides the address of the external system on a per-KB basis, inserting = the value of that variable into your script.
New system constants are created o= n the Customized Variables tab of the Global Variable wizard.
To create a new system constant: <= /span>
Configure the system constant settings =
as desired. Because the Manage Global=
Variables and Constants dialog is the same dialog used for global variable=
s, see Edit a Global Variable for more information o=
n the configuration settings.
If you create a new system constant and choose Yes und= er Supports Localization, you can save different values of the varia= ble for different languages. Upon switching languages in the system, t= he variable's value is removed and you can define a new value for the selec= ted language.