The Zurich release has arrived! Interested in new features and functionalities? Click here for more

scripted solutions or create custom interactive filters

joshbutler
Tera Contributor

I submitted a ticket to support, and they suggested using this.

 

We have the is (dynamic) report filter for checking if is "Me". How would I go about creating a filter for "Is Not (dynamic)"? So i can check if "is not me"?

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @joshbutler 

If it is not your email, that means you are looking for another user or group. In that case, mention that group or user name in the condition. There is nothing called ‘not name dynamic

*************************************************************************************************************
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]

****************************************************************************************************************

GlideFather
Tera Patron

Hi @joshbutler,

 

where would you like to apply it? For the list view it wouldn't work but in scripts, it could be something like this:

 

userGR = new GlideRecord('incident');
userGR.addEncodedQuery('caller_id!=' + gs.getUserID()); //Caller is not [logged in person]

 

you can test this with background script

 

EDIT: corrected typos in the script 🙂 now it's tested OK

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Oi @joshbutler any feedback - have you resolved what you wanted to?

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Bhuvan
Kilo Patron

@joshbutler 

 

It is not supported out of box. Refer below article for alternate option,

 

https://www.servicenow.com/community/platform-analytics-forum/add-filter-condition-is-dynamic-not-me...

 

If this helped to answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan