We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. 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);