What is use of Single-Row Variable Set and Multi-Row Variable Set in catalog item

Basha4
Tera Expert

What is the use of Single-Row Variable Set and Multi-Row Variable Set in the catalog item

what are the main differences between Single-Row Variable Set and Multi-Row Variable Set

4 REPLIES 4

Community Alums
Not applicable

Hi Basha,

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 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 a multi-row variable set.

You cannot include the following variable types in a multi-row variable set:

  • Break
  • Container End
  • Container Start
  • Container Split
  • HTML
  • Label
  • List Collector
  • Macro
  • Macro with label
  • UI Page
Note:
  • The Map to field functionality is not supported for variables used in a multi-row variable set.
  • Cascading functionality for variables in an order guide is not supported for a multi-row variable set.
  • A multi-row variable set is not displayed when added within a container.
  • A multi-row variable set is supported in the variable summarizer only in Service Portal.
  • You cannot add variables with read roles in a multi-row variable set.
  • When you clone a request that contains a multi-row variable set, the information that is specified in the multi-row variable set is available in all cloned requests. All UI policies and client scripts on the multi-row variable set are also cloned.
  • Set a limit to the number of rows that you can add to a multi-row variable set by using the max_rows attribute in the Variable Set attributes field.
You can define catalog client scripts, catalog UI policies, and catalog data lookups for a multi-row variable set. But, you cannot edit the visibility settings of its variables using catalog client scripts and catalog UI policies, that is, the g_form.setVisible() is not honored in catalog client scripts, and the Visible field of a catalog UI policy action is read-only and set to Leave alone.
 
 
 

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

Murthy Ch
Giga Sage

Hi Basha,

You can find the differences in the docs. Below is the link:

https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/product/service-catalog-managemen...

I have written a article on MRVS(Multi-Row Variable Set) features. You can find it using below link:


https://community.servicenow.com/community?id=community_article&sys_id=a0dcbf0fdbbc8150e515c22305961...

 

Hope it helps,

Thanks

Murthy

Thanks,
Murthy

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Did you go through docs for this?

You should be able to find answer to your questions.

regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

MrMuhammad
Giga Sage

Hi,

Variable sets help us combine resueable variables together. This gives us the flexibility to use that variable set accross multiple catalog items without the need to recreate those variables.

There are two types Single line variable set and multi-line variable set.

In simple words, Single line variable set holds the group of variables that can store a single value for each variable inside that variable set. the See screenshot to understand how it looks and feel.

Comments is a part of Single line variable set, I can resuse this in any catalog item i want but it can store single value.

find_real_file.png

Mobile devices set is a MRVS and you can see we can order multiple Mobile devices in a one go. It stores multiple values as a row in MRVS.

find_real_file.png

Regards,

Muhammad

Regards,
Muhammad