Need clarity on the data mention in Reference qualifier

suuriyas
Tera Contributor

HI Community,

 

Can anyone explain what exactly this means, this  is a variable in catalog, I'm trying to understand what it means

please elaborate this so that i can understand from where and how it is getting filtered

suuriyas_0-1743666242510.png

 

1 ACCEPTED SOLUTION

sejal1107
Tera Guru

Hi @suuriyas 

 

Reference qualifiers in ServiceNow are filters that restrict the data that appears in reference fields. They help refine the choices available in a reference field by defining conditions that the referenced records must meet.

 

Highlighted part is syntax for Reference Qualifier - Advanced 

 

javascript: new myScriptInclude.myNewFunction();

in your case x_kaoy_finops.Vendor_Utils() this is script include (x_kaoy_finops is application)

getCompanyCodeItem() this is function.

 

Return paremeter from above script include and function will be used as choices for reference

 

 

View solution in original post

6 REPLIES 6

sejal1107
Tera Guru

Hi @suuriyas 

 

Reference qualifiers in ServiceNow are filters that restrict the data that appears in reference fields. They help refine the choices available in a reference field by defining conditions that the referenced records must meet.

 

Highlighted part is syntax for Reference Qualifier - Advanced 

 

javascript: new myScriptInclude.myNewFunction();

in your case x_kaoy_finops.Vendor_Utils() this is script include (x_kaoy_finops is application)

getCompanyCodeItem() this is function.

 

Return paremeter from above script include and function will be used as choices for reference

 

 

Dr Atul - LNG
Tera Patron

Hi @suuriyas 

 

I might be 100% wrong, but I think it's pulling the data of the company code, which is stored in the x_finops.vendor table.

@Shivalika 

Hi @suuriyas 

 

I told you i Might be 100% wrong, as i am also learning scripting.

Nishant8
Tera Sage

Hello @suuriyas , Highlighted part here is a call to scoped Script Include, Vendor_Utils, which calls a method, getCompanyCodeItem(), inside it.

you can go to Script Include and search for this one and once you open, you should be able to understand the usage.

 

Regards,

Nishant