Any option is available to use is not (dynamic) in filter

sobitha
Kilo Contributor

I want to show incidents where Requested for field should not be the current user. How to use this condition dynamically?

Is "IS NOT(dynamic)" filter is available?

1 ACCEPTED SOLUTION

amlanpal
Kilo Sage

Hi Sobitha,



In the filter please search like: Requested for.Used ID is not javascript: gs.getUserID()


find_real_file.png



I hope this helps.Please mark correct/helpful based on impact


View solution in original post

5 REPLIES 5

Chuck Tomasi
Tera Patron

Hi Sobitha,



You can do this with a reference qualified.



If the reference filter type is simple,




Correct me if I'm wrong, but the field is "Caller" on the incident table, not Requested for (that the Request table.)



Caller | is not | javascript:gs.getUserID()



If that doesn't work, then you switch it from Simple to Advanced and use this:



javascript:"caller_id!='+gs.getUserID()



http://wiki.servicenow.com/index.php?title=Reference_Qualifiers#gsc.tab=0


Harry Campbell2
Mega Guru

Hi, It's not available as such but you can use IS NOT > javascript:gs.getUserID();


amlanpal
Kilo Sage

Hi Sobitha,



In the filter please search like: Requested for.Used ID is not javascript: gs.getUserID()


find_real_file.png



I hope this helps.Please mark correct/helpful based on impact


Hi sobitha,



If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.


If you are viewing this from the community inbox you will not see the correct answer button.   If so, please review   How to Mark Answers Correct From Inbox View