Service catalog variable sets
Summarize
Summary of Service catalog variable sets
Service catalog variable sets in ServiceNow enable administrators and catalog managers to create reusable groups of variables that can be attached to multiple catalog items and order guides. This functionality streamlines the management of common variables across items, reducing repetitive work, minimizing errors, and simplifying updates. Changes to a variable set automatically propagate to all associated catalog items, improving consistency and efficiency.
Show less
Key Features
- Role-based creation and association: Only catalog administrators can create variable sets, while catalog managers and editors can attach them to items they manage.
- Access control: Variable sets support read, write, and update roles, with access validated first at the variable set level, then at the variable level.
- Support for single-row and multi-row variable sets (MRVS):
- Single-row variable sets capture grouped data for a single entity in a request.
- Multi-row variable sets (MRVS) capture data in a grid layout for multiple entities, ideal for batch requests such as ordering multiple servers or HR reorganization details.
- MRVS limitations and capabilities:
- Certain variable types are not supported in MRVS, including attachments, containers, macros, and UI pages.
- MRVS supports unique value enforcement, hiding variables, and only glide list interface for list collectors.
- MRVS cannot be nested within containers or include variables with read roles.
- UI policies and client scripts defined within an MRVS apply only to that MRVS; item-level scripts do not affect MRVS variables.
- MRVS supports dynamic forms and integration with workflows, including the ability to iterate rows and access variables programmatically.
- MRVS is not supported in Now Mobile request views or within catalog tasks, but price changes from MRVS variables are reflected in catalog item pricing under certain conditions.
- Some features like onSubmit client scripts, cascading variables, and dependent reference qualifiers across MRVS boundaries are not supported.
- Variable set layouts: Variable sets support customizable layouts and variable ordering per catalog item to tailor the request experience.
Practical Benefits for ServiceNow Customers
- Efficiently reuse common variable groups across multiple catalog items and order guides to save time and reduce errors.
- Manage variable updates centrally by modifying variable sets rather than individual catalog items.
- Use MRVS for complex requests involving multiple entities or configurations in a structured grid format.
- Leverage built-in role-based access controls to protect sensitive variable data at the set and variable levels.
- Integrate variable sets into workflows and automation to enhance catalog item processing.
Administrators and catalog administrators often define multiple catalog items that use the same group of service catalog variables. Catalog managers and catalog editors can attach a variable set for items to which they are assigned. However, catalog managers and catalog editors cannot create a variable set.
For example, a catalog administrator defines 10 catalog items for types of servers. The request process for all these items asks the same five questions, using the same variables.
Associating these variables individually per catalog item is repetitive, time-consuming, and error-prone. Also, to make a single change to multiple catalog items involves manually changing each item. For example, to add a variable to 10 catalog items, you would need to manually associate the variable with each item.
Variable sets allow you to create a collection of variables that can be reused across multiple catalog items and order guides. Using variable sets saves time because you do not have to create the same variables individually for many catalog items. Also, when variables should be modified, you can modify the variable set and the changes are reflected across all the catalog items that are associated with the variable set.
Variable sets also allow you to define catalog client scripts and UI policies that are applicable to the variables in the set.
A catalog administrator can provide read, write, and update roles to access a variable set. When you access variables of a variable set, a validation is first done at the variable set level, and then at the variable level. If the access is blocked at the variable set level, then the access settings on the variable are over-ridden. If the access is allowed at the variable set level, then access at the variable level is verified.
Single-row variable set
Use a single-row variable set to capture data from variables that are grouped together, while submitting a catalog item request for a single entity.
Multi-row variable set
Use a multi-row variable set (MRVS) to capture variable data in a grid layout while submitting a catalog item request for a group of entities. For example, for HR during the reorganization of employees, a single record producer should be able to capture the relevant information such as the department and manager for a group of employees. Also, when you request a catalog item to order virtual machines and servers, configuration options should be captured as a single request. In this case, a requester can define multiple hardware units as rows and their configuration options as columns of an MRVS.
You cannot include the following variable types in an MRVS:
- Attachment
- Break
- Container End
- Container Start
- Container Split
- HTML
- Label
- Macro
- Macro with label
- Rich Text Label
- UI Page
- You can configure an MRVS variable to disallow duplicate values. For information about the Unique field, see Create a service catalog variable.
- You can hide a variable in the MRVS so that it does not appear when the dialog box is open.
- The Map to field functionality is not supported for variables used in an MRVS.
- Only the glide list interface is supported for the List Collector variable.
- Cascading functionality for variables in an order guide is not supported in an MRVS.
- An MRVS is not displayed when added within a container.
- You cannot add variables with read roles in an MRVS.
- When you clone a request that contains an MRVS, the information that is specified in the MRVS is available in all cloned requests. All UI policies and client scripts on the MRVS are also cloned.
- Set a limit to the number of rows that you can add to an MRVS by using the max_rows attribute in the Variable Set attributes field.
- In the RITM and request view in Now Mobile, an MRVS is not supported. A message is displayed in this view that this variable set is not viewable.
- An MRVS is supported in the variable summarizer only in Service Portal.
- You can include an MRVS in the GetCatalogVariables and CreateCatalogTask actions using Workflow Studio.
- You can iterate through individual rows and access variables using the For Each flow logic.
- You can include MRVS while creating a catalog task using a workflow.
- Other rows of that MRVS
- Other variables outside of that MRVS on the catalog item form.
For information about accessing data in a multi-row variable set (MRVS) when a dialog box is open, see g_service_catalog - Client.
- onSubmit catalog client scripts are not supported for an MRVS.
- Catalog UI policies and catalog client scripts defined at the item level are not applicable for variables in an MRVS. Only those catalog UI policies and catalog client scripts defined within the MRVS are applicable for variables in the MRVS.
- Scripts that are not included in an MRVS cannot affect variables inside the MRVS. Similarly, the scripts included in the MRVS cannot affect the variables that are not included in the MRVS.
- Variables that are not included in an MRVS cannot be used in dependent reference qualifiers for variables in the MRVS. Similarly, the variables included in the MRVS cannot be used in dependent reference qualifiers for variables that are not in the MRVS. For a reference qualifier, the current row is the one that is being edited.
You cannot set Global as True for any variable that belongs to an MRVS. So, an MRVS is not available in catalog tasks.
You cannot select variables of an MRVS when defining the following for a catalog item:
- UI policy conditions
- Unsupported ATF step configurations. You can only validate if an MRVS is visible, mandatory, or read only.
- Reporting