Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

how to set filter conditions on the list to exclude other condition too?

Sharique Azim
Mega Sage

Hi,

I was recently given this requirement "if an item is in a Cancelled state, it currently will show up if we have the Active = True on query in SNOW.   The client needs the Cancelled items to not show as Active. " .I know it sounds bit odd but plausible.

I have thought of excluding the state is state='rejected'(or whatever the logical value is ) ,whenever a query is made using breadcrumbs as active =true.

But, i am not sure how to proceed. I am trying to implement list control.Hope that helps.

PS: i am aware of the edit module and edit personal filters things.This sets the default value like the way i want it.But i need to make it dynamically excluded if condition is active=true.

7 REPLIES 7

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Sharique,



You can edit the module filter and apply conditions as per your req.


You can right click on module->or else go to modules from navigation filter and search for module called "Items"->Now edit the filter as per your req.


Screenshot for reference.


Screen Shot 2016-07-24 at 9.22.18 PM.png



Reference:


Administering Application Menus and Modules - ServiceNow Wiki


No, i am not supposed to make it default filter for any module.


Chuck Tomasi
Tera Patron

Hi Sharique,



You can define which states are 'active=true' and which are 'active=false' using the close_states dictionary attribute. By default they are state values 3, 4, 7. Using the dictionary attribute, you can use other values and keep your filters simple to active=true.



Reference:


Dictionary Attributes - ServiceNow Wiki


for comm.png


Hi ctomasi , tried   doing this doesnt works.


Now is there anything else which i should do in dictionary attributes?




Regards,


Shariq