Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

How to get same output of the script by using OOTB filter conditions of incident Records for cross checking purpose..??

satish samrat
Kilo Contributor

var inc = new GlideRecord('incident');
inc.addActiveQuery();
inc.orderBy('number');
inc.chooseWindow(2,10);
inc.query();
while(inc.next()){
  gs.print(inc.number);
}

5 REPLIES 5

Chandu Telu
Tera Guru

Hi Satish,

 

Looks Like we don't have OOTB option to choose build for choose window and we have like

active=true^numberBETWEENINC0000002@INC0000017

 

Thanks
Chandu Telu
Please Mark Correct/helpful, if applicable,

Community Alums
Not applicable

Hi @satish samrat ,

Use the below condition :

find_real_file.png

Mark my answer correct & Helpful, if Applicable.

Thanks,
Sandeep

Community Alums
Not applicable

Hi @satish samrat ,

Any update to this ?Any follow-up required? if not

Kindly mark the answer as Correct & Helpful both such that others can get help.

Thanks,
Sandeep

Surbhi Srivasta
Tera Expert

Hi Satish,

The following may help you resolve your query:-

https://community.servicenow.com/community?id=community_question&sys_id=74769d5bdba72050da1999ead39619ff

Please mark my answer Correct/Helpful, If it resolve your issue.

Regards,

Surbhi