logo

NJP

Into the unknown - Script Count of customer accounts

Import · Sep 06, 2021 · article

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

gs.info(accounts);

View original source

https://www.servicenow.com/community/csm-blog/into-the-unknown-script-count-of-customer-accounts/ba-p/2292276