I want to create which is Department is NOT Network how to write a script for the same

kranthi2
Tera Expert

Hi,

I want to create which is Department is NOT Network how to write a script for the same.

 

Please help me out with the script so that I don't want to show some of the items Department is Not Network.

 

kranthi2_0-1702294896337.png

 

6 REPLIES 6

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @kranthi2 

 

What is your use case? Where you want to show or implement , accordingly. 

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

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

Ankur Bawiskar
Tera Patron
Tera Patron

@kranthi2 

Your question is not framed correctly.

Please explain your business requirement.

I could see you are trying to create a user criteria and want to show it only for few departments, what next?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Requirement:

I have 236 departments are there, i want to create a user criteria which will allow only 

"Department=! Network" / Department is Not equal to Network

Here i can't select 235 departments instead i want to add some script so that it will fetch the users whose department is Not Starbucks.

 

Please help me on the same.

 

Thanks.

Hi @kranthi2 

 

But where you want to add this criteria, like at Incident form or portal or knowledge base where you want to add. 

 

LearnNGrowAtul_0-1702298969217.png

 

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

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