Reference Qualifier

David Boom
Tera Contributor

I have 2 variable referencing to same table. Variable A and B.

The table they are referencing to have parent child relationship between records like Incidents and child incidents.

Requirement is when I select some value in A, B should show only child records of A.

1 ACCEPTED SOLUTION

JenniferRah
Mega Sage

You can add a reference qualifier like this to variable B, where "fieldname" is the field in the reference table that shows the relationship to the parent and "fieldA" is the name of your variable A.

 

javascript: "fieldname=" + current.variables.fieldA;

 

 

View solution in original post

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @David Boom 

 

You can use the OOTB functionality here, such as the assignment group and assigned to fields. It's part of the out-of-the-box setup. Please check and confirm if it's done.

*************************************************************************************************************
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]

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

JenniferRah
Mega Sage

You can add a reference qualifier like this to variable B, where "fieldname" is the field in the reference table that shows the relationship to the parent and "fieldA" is the name of your variable A.

 

javascript: "fieldname=" + current.variables.fieldA;

 

 

@JenniferRah can we add a filter condition as well in this?

Sure. It would just look something like this. As long as the string returns the entire search string, it should work.

javascript: "field1=value1^fieldname=" + current.variables.fieldA;