We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

VaranAwesomenow
Mega Sage

var count = new GlideAggregate('customer_account');
count.addAggregate('COUNT');
count.query();
var accounts = 0;
if (count.next())
accounts = count.getAggregate('COUNT');
gs.info(accounts);