- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2022 02:06 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2022 02:51 AM
Is your issue resolved?
Feel free to mark correct, If I answered your query.
Will be helpful for future visitors looking for similar questions 🙂
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2022 02:31 AM
[0:00:00.039] Script completed in scope global: script
Script execution history and recovery available here
showing like this

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2022 02:32 AM
Try code shared by me:
var inc =new GlideRecord('incident');
inc.query();
while(inc.next())
{
gs.info(inc.getValue("number"));
}
Aman Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2022 02:33 AM
Try this
var inc =new GlideRecord('incident');
inc.query();
while(inc.next())
{
gs.print('Incident number is' + inc.number)
}
This will show all the incidents so probably screen might get hanged so I would suggest try this in fix script and click on run in background or add filter condition as follows
var inc =new GlideRecord('incident');
inc.addQuery('active', true);
inc.query();
while(inc.next())
{
gs.print('inc.number')
}
Regards,
Musab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2022 02:35 AM
Thanks Aman iam suffring this issue since two

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2022 02:51 AM
Is your issue resolved?
Feel free to mark correct, If I answered your query.
Will be helpful for future visitors looking for similar questions 🙂
Aman Kumar