- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2025 06:43 AM
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.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2025 06:52 AM - edited 02-25-2025 06:52 AM
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;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2025 06:46 AM
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]
****************************************************************************************************************

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2025 06:52 AM - edited 02-25-2025 06:52 AM
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;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2025 07:06 AM
@JenniferRah can we add a filter condition as well in this?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2025 07:08 AM
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;