GetConfigurationVariable

GetConfigurationVariable(key, defaultValue=null): String

Read server configuration parameter by key.

Table 1. Parameters

key

Configuration parameter name to lookup.

defaultValue

Optional argument with default value if key is not found.

Return

Value of the server configuration parameter. If key is not found, defaultValue is returned if specified, otherwise null. If the script is executed on behalf of a user without the "Edit server configuration variables" system access right, the variable is not read and defaultValue (or null) is returned.

>>> GetConfigurationVariable("Objects.StatusPollingInterval")
60
>>> GetConfigurationVariable("BadVariable")
NULL
>>> GetConfigurationVariable("BadVariable", 22)
22