loadSystemPreference

This operator returns the value of a system preference.

System preferences are global variables that remain the same across all users, to load those variables' value into the playbook. The user can use this operator by passing the variable name.

Operator Usage in Easy Mode

  1. Click + on the parent node.
  2. Enter the loadSystemPreference operator in the search field and select the operator from the Results to open the operator form.
  3. Enter the name of the system preference key whose value has to be retrieved
  4. Optional. Enter the default value for the key that do not exist in system preference then, this value will be returned else an empty string will be returned.
  5. Click Run to view the result.
  6. Click Cancel to discard the operator form.

Usage Details

loadSystemPreference(key: String, defaultValue: String)

Input

  • key (String): The name of the system preference key whose value has to be retrieved
  • defaultValue (String): Optional. If the value for the key does not exist in system preference then this value will be returned else an empty string will be returned.

Output
A table containing one column (value) is returned which depicts the system preference.

Example

Input = loadSystemPreference

loadSystemPreference("dashboardTimeZone")

Output

Value

Asia/Calcutta


Did this page help you?