Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2018 01:49 AM
1 ACCEPTED SOLUTION

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2018 01:55 PM
Hi Ram,
The below one may help you.
var arr=[];
var inc = new GlideRecord('incident');
inc.addActiveQuery();
inc.addEncodedQuery('category=software^ORcategory=hardware');
inc.query();
while(inc.next())
{
arr.push(inc.getValue('number'));
}
gs.print(arr);
Hope this helps!
Thanks,
Archana
6 REPLIES 6

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2018 01:55 PM
Hi Ram,
The below one may help you.
var arr=[];
var inc = new GlideRecord('incident');
inc.addActiveQuery();
inc.addEncodedQuery('category=software^ORcategory=hardware');
inc.query();
while(inc.next())
{
arr.push(inc.getValue('number'));
}
gs.print(arr);
Hope this helps!
Thanks,
Archana
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-14-2024 08:44 AM
Hello, could please guide me
- Display 10 incidents( number,caller,category ) which were created between 1 january 2022 and 1
march 2023 and category is hardware .