variables and variables set

ANANTHULA NAVEE
Tera Contributor

1)What is the difference between variables and Variable Set?

3 REPLIES 3

dave_edgar
Mega Guru

a variable is related to a catalog item but a variable set is one or more variables which you can also include ui policies and catalog client scripts in so that you can add them as a set to other catalog items (almost like a template)


HarshTimes
Tera Guru

Hi Naveen


Variables are like fields on the catalog item whereas the variable set are group or set of the variables.



You can create a variable for a single catalog item only . When you want to use this variables across multiple catalog item then you can add them in a variable set and and add that variable set to the catalog item.In this way you can use same variables across multiple catalog items.


You can say that variable set helps or needed to use the same variable across multiple catalog item



For more details see the servicenow docs - Create a variable


Vishal Khandve
Kilo Sage

Hello Naveen,


Lets say you decide "On every catalog item, I'm going to ask someone who they are and where they're from".


If you build a variable set with two variables, you can associate the variable set to each of the catalog items.   Its basically a container of commonly used variables.  




Otherwise you're manually defining your variables every single time.



Thnk you