Help with Reference Qualifier

Patrick Cavanau
Tera Contributor

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!

PatrickCavanau_0-1721925279925.png

 

5 REPLIES 5

Mark Roethof
Tera Patron
Tera Patron

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

LinkedIn

@Mark Roethof 

 

When I am populating the SAL code I should see some data here and it is blank

 

PatrickCavanau_0-1721926778121.png

 

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

LinkedIn

Vrushali  Kolte
Mega Sage

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👍!