/GlideAggregate.js Secret
Created
August 3, 2021 21:48
GlideAggregate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Number of incidents varies depending on the current state | |
//of the incident table | |
var count = new GlideAggregate('incident'); | |
count.addEncodedQuery('active=true'); | |
count.addAggregate('COUNT'); | |
count.query(); | |
var incidents = 0; | |
if (count.next()) | |
incidents = count.getAggregate('COUNT'); | |
gs.info(incidents); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment