Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

what is the difference between variable and variable set???

Mohd Shahnawaz
Tera Contributor

what is the difference between variable and variable set???

1 ACCEPTED SOLUTION

Kamal17
Kilo Sage

Hi Shahnawaz,



Variables: Specific to single catalog item. Cannot be reused/associated with multiple items.



Variable Set: Collection of variables forms a variable set. Unlike variables, single variable set can be reused i.e can be associated with multiple catalog items



Consider 3 catalog items say Unix, Linux and Mac.


A single variable set with variables (OS Name, OS Version, Disk Space, etc) can be reused for all the above 3 items



-Udhay


Please Hit like, Helpful or Correct depending on the impact of the response


View solution in original post

5 REPLIES 5

Harish KM
Kilo Patron
Kilo Patron

In simple terms



Variable is local to a catalog item. For example you have a catalog item A. here you have created a variable called "ABC". This ABC variable is available only to the catalog item A.



Variable set is Global . If you create a variable set "XYZ". These variable sets can be used to any catalog items.


Regards
Harish