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.

Using Reference Qual and Variable attributes in an MRV from Catalog item variables

Peter Williams
Kilo Sage

Good day,

 

i have two catalog item variables called office and department. These are reference items going to the cmn_location and cmn_department tables

I have an MRV that is linking to a custom table call GL codes. The columns for office and department is also link to the cmn_location and cmn_department tables.

 

the variables on the gl table is called u_office and u_department

 

When the user select their office and department i want the GL codes to be filter base on those option

 

i have this so far got the GL code reference in the MRV

Reference Qual:

javascript: 'u_office='+current.variables.office'^u_department='+current.variables.department

 

variable attribute:

ref_qual_elements=office^department

 

PeterWilliams_0-1685034815027.png

 

the GL codes are coming back with everything listed in it

 

 

 

 

 

7 REPLIES 7

@Peter Williams ,

make ref_qual_elements=office;department

same deal no records found

@Peter Williams ,

 

You can remove the entire ref_qual_elements and try again. 

If it still does not work , then reverify the backend names of variables you are using in advanced reference qualifier because there might be a typo in there

I recreated the scenario and it worked in my PDI with the advanced reference qualifier