Variables
Summarize
Summary of Variables
The Variables page in your ServiceNow system lists all available variable sets, allowing you to search, create, edit, or delete these sets. Variables are primarily used for Auto Query scans and can be associated with specific Sites. Each Site can only link to one Variable set, but a Variable set can contain multiple variables.
Show less
Key Features
- Variable Indicators: A green bracket-dot icon signifies that a variable is enabled for auto queries; white means it is not. A green lock icon indicates the variable’s password is encrypted, ensuring security.
- Variable Sets: There are special sets such as Custom - Global (editable by users) and Driver - Global (read-only). Custom - Global sets can override Driver - Global sets indirectly.
- Query Behavior: When running queries, the system first checks for Site-specific variable overrides. If none exist, it looks for Custom - Global overrides, and if those are absent, it defaults to the Driver - Global variable set.
- Import/Export: Variable sets can be imported or exported in JSON or CSV formats. When exporting, you can choose to include encrypted password variables as plain text (which reduces security) or exclude them. Encrypted values are displayed as obscured dots within the interface to protect sensitive information.
Practical Implications
By managing variable sets effectively, you can tailor Auto Query behavior per Site, maintain security for sensitive data through encryption, and leverage global overrides for flexible configuration. Import/export capabilities facilitate variable set management and migration across environments, with clear options around handling encrypted passwords.
The Variables page provides a list of currently available variable sets.
Variable overview
The Variables page displays the available Variable sets on your system. It provides a Search Variables field above the variable list.
You can also create new variable sets. Variables are used for Auto Query scans and can be associated to a specific Site.
The columns on the page are:- The bracket dot icon
and lock icon
appear in the row next to the variable listing. When the bracket-dot symbol appears green next to the variable's name, the variable can be used for auto queries. When white, the variable can't be used for auto queries. The green lock indicates that the variable password is encrypted.
Note:Encrypted Variable values in Variable Sets are obscured. - Name
- Description
- Sites display the name of the site to which the variable is associated.Note:A Site can only be associated with a single Variable set, but a Variable set can contain many variables.
- Variables (number of variables)
- Tools
- Select the pencil icon
to edit the variable set.
- Select the trash can icon
to delete the variable set.
- Select the pencil icon
Special Variable sets
- Custom - Global
- Driver - Global
You can use variable sets (Custom - Global or Site-specific sets) to override a Variable set. See Edit a Variable set or Create a Site-specific Variable set to use with Auto Query for more information on editing a Variable set.
Query Behavior
During a query, the query configuration is reviewed to see which Sites are being targeted. The query then searches to see if any Site-specific variable set override is defined. If no override is defined, it then searches to see if any Custom - Global override is defined. If it doesn't find a custom override, the query uses the default variable set from the Driver - Global.