Difference between dynamic and advanced reference qualifier

vinuth v
Tera Expert

Hi All,

Main difference between dynamic and advanced reference qualifier.

 

Thanks,

Vinuth

2 REPLIES 2

Zach Koch
Giga Sage

Take a look at this excellent post from asifnoor

Differences between ref quals 

Vrushali  Kolte
Mega Sage

Hello @vinuth v ,

 

Understanding reference qualifiers for variable is pretty simple.

 

Simple : Filter outs records which are being returned from the reference table. It is more like an encoded query where you just apply a filter on a table.

 

VrushaliKolte_1-1721326081093.png

 

Dynamic : Instead of making your query static, you can pass dynamic values to it and filter the records that are being return from reference table. Please check below example.

 

"location="current.variables.loaction //Passing location value dynamically from the catalog form

 

Advanced : Here, you can actually write a function or any server side logic to filter your records. Please see below example.

javascript: new myScriptInclude.myNewFunction();  // calling script include function which will return sys_id of filtered records.

 

For more information please refer - https://www.servicenow.com/community/developer-articles/reference-qualifiers-in-servicenow/ta-p/2765...

 

If my answer solves your issue, please mark it as Accepted✔️ and Helpful 👍based on the impact.