abeyahmad / servicenow-rest

18 stars 13 forks source link

How to get total row count? #10

Closed sekarpdkt closed 6 years ago

sekarpdkt commented 6 years ago

How to total row count of query?

sekarpdkt commented 6 years ago

Ignore. got it.

var GlideAggregate = require('servicenow-rest').glideaggregate; var gar = new GlideAggregate('instance','table','user','pass','v1') gar.addCount(true); gar.query().then(function(result1){ //returns promise console.log(result1.stats.count)

} )