- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2015 02:49 AM
Hi,
I am trying to display by using
var inc = new GlideRecord('incident');
inc.addQuery('opened_at', today);
inc.query();
But, am not getting output for this.
If Any one aware of this help me.
Regards,
jennifer
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2015 02:51 AM
Hi Jennifer,
Here you go.
var inc = new GlideRecord('incident');
inc.addQuery('active=true^opened_atONToday@javascript:gs.daysAgoStart(0)@javascript:gs.daysAgoEnd(0)');
inc.query();
while(inc.next())
{
gs.addInfoMessage(inc.getRowCount());
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2015 02:51 AM
Hi Jennifer,
Here you go.
var inc = new GlideRecord('incident');
inc.addQuery('active=true^opened_atONToday@javascript:gs.daysAgoStart(0)@javascript:gs.daysAgoEnd(0)');
inc.query();
while(inc.next())
{
gs.addInfoMessage(inc.getRowCount());
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2015 03:56 AM
Hii Pradeep,
Thanq, Now the Code is working.
Regards,
jennifer.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2015 04:21 AM
Perfect