Reference Qualifier Condition which uses current form field Sys ID to filter

jeremielanders
Mega Contributor

Okay, I've been racking my brain on this issue for days, and I know it probably has a super-simple solution; I just can not find it. Perhaps someone here could help?

On the Change table (extended from Task) I have created a watch list field called "Reviewer(s)" with the Reference set to the User table. I also have another field, the standard Requested By which is a Reference itself to the User table.

What I am trying to do is use a Reference Qualifier Condition on the Reviewer(s) field that is logically says "the 'Reviewer' user is not allowed to be the 'Requested By' user". The Reference Qualifier Condition would effectively allow the watch list lookup search for everyone except the person in the Requested By field.

I have tried the following without positive result:

1) Reference qual condition

Sys ID is not javascript:current.requested_by.sys_id

2) Reference qual condition

Name is not javascript:current.requested_by.name

3) Reference qual condition

Sys ID is not javascript:current.getValue('requested_by')

3) Created a Script Include which returns current.getValue('requested_by') and used it in a Reference qual condition

Sys ID is not javascript:u_allButRequester()

I'm stumped; what am I missing here? Thank you kindly in advance for any help provided!

1 ACCEPTED SOLUTION

Kalaiarasan Pus
Giga Sage

Switch to advanced view of dictionary field and try this


javascript:"sys_id!="+current.u_requested_for



screenshot-dev10735.service-now.com 2015-11-07 20-03-00.png


View solution in original post

2 REPLIES 2

Kalaiarasan Pus
Giga Sage

Switch to advanced view of dictionary field and try this


javascript:"sys_id!="+current.u_requested_for



screenshot-dev10735.service-now.com 2015-11-07 20-03-00.png


Kalaiarasan, thank you kindly! I substituted the u_requested_for with the field I'm actually using, requested_by, and the results were successful!



Again, thank you very much!



Jeremie