- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2022 04:39 AM
hii all,
Get the records of incidents which is of priority high and category software
limit it 10 using background script.
thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2022 04:42 AM
var abc= new GlideRecord('incident');
abc.addEncodedQuery('priority=2^active=true^category=software');
abc.setLimit(10);
abc.query();
while(abc.next())
{
gs.print(abc.number);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2022 04:42 AM
var abc= new GlideRecord('incident');
abc.addEncodedQuery('priority=2^active=true^category=software');
abc.setLimit(10);
abc.query();
while(abc.next())
{
gs.print(abc.number);
}