- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2024 11:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2024 04:50 AM
Hello @SireeshaV ,
You can use the GlideAggregate API to get the incident count. Refer below example:
var ga = new GlideAggregate('incident');
ga.addAggregate('COUNT');
ga.query();
if (ga.next()) {
var incidentCount = ga.getAggregate('COUNT');
gs.info('Total number of incidents: ' + incidentCount);
}
Thank you!!
Dnyaneshwaree Satpute
Tera Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2024 05:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2024 05:05 AM
Hi @SireeshaV use Glide aggregate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2024 05:06 AM
Hi @SireeshaV ,
You can utilize the Glide Aggregate API for this.
Navigate to Rest API Explorer and fill out the details as below:
[active^true] encoded query will filter all the active incident records.
Click on Send button, the response will be as below:
Mark this as Helpful / Accept the Solution if this helps
Mark this as Helpful / Accept the Solution if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2024 04:50 AM
Hello @SireeshaV ,
You can use the GlideAggregate API to get the incident count. Refer below example:
var ga = new GlideAggregate('incident');
ga.addAggregate('COUNT');
ga.query();
if (ga.next()) {
var incidentCount = ga.getAggregate('COUNT');
gs.info('Total number of incidents: ' + incidentCount);
}
Thank you!!
Dnyaneshwaree Satpute
Tera Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2024 05:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2024 05:05 AM
Hi @SireeshaV use Glide aggregate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2024 05:06 AM
Hi @SireeshaV ,
You can utilize the Glide Aggregate API for this.
Navigate to Rest API Explorer and fill out the details as below:
[active^true] encoded query will filter all the active incident records.
Click on Send button, the response will be as below:
Mark this as Helpful / Accept the Solution if this helps
Mark this as Helpful / Accept the Solution if this helps.