How to write filters in reference qualifier for catalog variables( eg.lookup multiple choice) .

uma7
Kilo Guru

Please anyone give me some examples and explain the logic behind them

1 ACCEPTED SOLUTION

What is model_category here? Is it variable or field of the selected table?

View solution in original post

8 REPLIES 8

Pradeep Sharma
ServiceNow Employee

JerryJ071847183
Tera Sage

Filters are nothing but the setting you keep on the table to get the desired results..

Example : if you want incidents with priority 1 which are also active , so you can go to list view of incidents

apply that filter and whatever filter you have applied you just need to copy that and paste it in notepad , you will see a query like    'active=true^priority=1' this.

 

And lookup filter would be something were you would display data based on selection of other option.

For example you can refer below

https://community.servicenow.com/community?id=community_question&sys_id=af1a0fdcdbf8d304b61ff3231f96...

 

Mark my ANSWER as CORRECT and HELPFUL if it helps

 

 

Raghav Sharma24
Giga Patron

Hi,

Reference Qualifiers are generally used when you want to limit the selection in reference fields (lookup select box, reference fields, list collectors) based on some conditions.

 

javascript:'model_category='+current.variables.u_class_category_of_asset+'^install_status=6';

In the above example, the CIs which have model_category same as the category selected in variable "u_class_category_of_asset" and "install_status=6" will populate.

 

You can also call script includes in reference qualifiers.

 

Pls. mark this helpful, if this helps.

 

Thanks.

 

 

What is model_category here? Is it variable or field of the selected table?