Help with Reference Qualifier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2024 09:35 AM
Hello,
I have a reference qualifier in a variable that is referencing another variable "sal_code" on the catalog item. It has to show only the records that have that sal code in the u_target_sal field. The reference qualifier I have is not working as expected. Any help would be great!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2024 09:46 AM
Hi there,
What exactly do you mean with not working as expected? Is not working at all? Is it giving a different value? Is it throwing an error? Etcetera?
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2024 10:00 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2024 10:09 AM
sal_code is a reference variable correct? If so you could try:
javascript: 'sal_code=' + current.variables.u_target_sal;
(assuming u_target_sal is also a reference)
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2024 09:51 AM - edited 07-25-2024 10:27 AM
Hello @Patrick Cavanau ,
Can you try it as below -
Instead of using getDisplayValue() try to do dot-walking.
javascript: 'sal_code='+current.variables.u_targer_sal.name; //replace with actual var name
If my answer solves your issue, please mark it as Accepted ✔️& Helpful👍!