Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Refernce qualifier on Lookup select box

Martines
Tera Expert

HI community, 

 

I have record producer with two variables. Leave type and Leave type detail. Both of them are look up select box type. 

 

 When I choose value from Leave type I want that reference qualifier will filter leave type detail options according the Leave type value.  but when I paste into reference qualifier current.variables.leave_type i got nothing.   

 

Do you have any idea why I got no value in current.variables.leave_type ? Thank you for help

1 ACCEPTED SOLUTION

Martines
Tera Expert

I found a solution. The problem was that on a leave_type variable I have Look up value field as SYS_ID.  In the backend this field is a choice type field. So I changed the SYS_IS value to backend name of the field which is u_leave_category.  Then in my leave_type_detail variable I can receive value from current.variables.toString();

View solution in original post

15 REPLIES 15

Yes I did, and for current.variables.leave_type I got no value in my script include. 

@Martines 

you need to debug step by step

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Thank you for your answer. Do you have any tips how to debug this? I only added gs.info  to my script include to see if some value or error is coming from my ref qualifier. But when I look into the log I see message with no value, nothing. 

yashkamde
Giga Sage

Hello @Martines ,

 

These can be achieved by simple lookup select box configuration fetching values from custom table :

First create one variable (Select Box) name Leave Type and setting as follows:

Screenshot 2026-08-14 175912.png


One Variable (Lookup Select Box) name Leave Type Detail and setting as follows:

Screenshot 2026-08-14 180524.png

 

Then in one custom table add two of your fields (choice) - leave type and detail and values as follows :

Screenshot 2026-08-14 180343.png

 

Then you will get the result as per your requirement :
Screenshot 2026-08-14 175835.pngScreenshot 2026-08-14 175843.png

 

If my response helped mark as helpful and accept the solution.

Thank you for your response. 

I cannot  have type select box for leave_type variable, because I need to put there reference qualifier for that field.