Service Catalog Reference Qualifier: Filter Based on Requested For?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2025 01:58 AM
Hi all,
I am working on a Service Catalog item where I need to filter the Computer Name reference field. The requirement is to display only computers where:
Assigned To = Requested For
OR Last Logged In User = Requested For
What will be the reference qualifier for this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2025 05:51 AM
Hi @PrathmeshT
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-04-2025 05:59 AM
assuming Requested for is already a variable on your form then use this
Note: give correct variable name and correct field name for last logged in user
javascript: 'assigned_to=' + current.variables.requestedForVariable + '^ORlast_loggedin_user=' + current.variables.requestedForVariable;
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2025 08:35 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2025 06:00 AM
Without knowing which table you are referencing in the Computer Name variable, it's hard to say. I will assume it's the alm_hardware table and that "Last Logged In User" is a custom field. I will also assume your Requested For is a variable.
In these cases, you would set your reference qualifier to be this:
javascript: "assigned_to=" + current.variables.requested_for + "^ORu_last_logged_in_user=" + current.variables.requested_for;