The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Catalog Item data from a variable set

Jason_DaSilva
Tera Guru

Our catalog creation team has done some good work in setting up a variable set to collect basic information for a request that can be used over multiple catalog items.

The down side is one of the variables (requested for) is part of that set.  In using that variable set, I want to be able to use that variable of the variable set to set filters in other fields specific to the request being filled out, such as a listing of computers assigned to the person that is the target of the request.  As it is now, the user of this catalog task will have to select the target user a second time for me to be able to capture that to use in a reference qualifier.  Is there a way to use data collected in a variable set?

 

EDIT: also is it possible to use data from a variable set to auto-populate another field.  

1 ACCEPTED SOLUTION

Brad Bowman
Kilo Patron
Kilo Patron

Hi Jason,

If you're referring to requested_for being in a single row variable set, it's treated just the same as if it weren't in Catalog Client Scripts (g_form.getValue('var_name')) and reference qualifiers (current.var_name).  If you are auto-populating via the new (Utah) tab in the variable, you will not see this variable in the Dependent field list until Vancouver.  See a work-around in this post

https://www.servicenow.com/community/developer-forum/service-catalog-showing-variable-set-options-un... 

 

View solution in original post

2 REPLIES 2

Brad Bowman
Kilo Patron
Kilo Patron

Hi Jason,

If you're referring to requested_for being in a single row variable set, it's treated just the same as if it weren't in Catalog Client Scripts (g_form.getValue('var_name')) and reference qualifiers (current.var_name).  If you are auto-populating via the new (Utah) tab in the variable, you will not see this variable in the Dependent field list until Vancouver.  See a work-around in this post

https://www.servicenow.com/community/developer-forum/service-catalog-showing-variable-set-options-un... 

 

Thanks Brad!  I thought that the variable set would add a layer to the dot walk, since they were not showing in the Dependent field.  I was trying to have the variable set name in that, which apparently is not needed.  🙂

For the auto-populate, I ended up (with some help from one of our devs) using a client script, since I just wanted the value selected in the variable set to be used for other auto populate info based on its value.  (ie, the user selected.  I could then get information around that user such as assigned equipment and such).