- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2022 09:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2022 09:40 PM
var grI=new GlideRecord("incident");
grI.orderByDesc("sys_created_on");
grI.setLimit(10);
grI.query();
while(grI.next())
{
gs.info(grI.getDisplayValue());
}
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2022 09:38 PM
Hi,
something like this in background script
var gr = new GlideRecord("incident");
gr.orderByDesc("sys_created_on");
gr.setLimit(10);
gr.query();
while (gr.next()) {
gs.info(gr.number);
}
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2022 08:12 PM
Did you mistakenly marked other response as correct?
I could see you marked my response as correct earlier and not it is not.
The "Marked as Correct" answer is same as what I mentioned in my 1st response to your question.
Please mark appropriate response as correct based on timely response.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2022 09:40 PM
var grI=new GlideRecord("incident");
grI.orderByDesc("sys_created_on");
grI.setLimit(10);
grI.query();
while(grI.next())
{
gs.info(grI.getDisplayValue());
}
Murthy