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

 

 

Please check and Mark Helpful and Correct if it really helped you.
Thanks & Regards
Sejal Chavan

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

 

 

Please check and Mark Helpful and Correct if it really helped you.
Thanks & Regards
Sejal Chavan

Dr Atul G- LNG
Tera Patron
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 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @suuriyas 

 

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

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Nishant8
Giga 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