Snippets Collections

Client callable script include used for filtering sys_user lists
to identify duplication email users
name: duplicateEmail
active: true
client callabe: true
function duplicateEmail() {
    var xx = new GlideAggregate('sys_user');
    xx.addAggregate('COUNT', 'email');
    xx.addHaving('COUNT', 'email', '>', '1');
    var answer = new Array();
    while ( {
    return answer;

Tue Jan 26 2021 15:41:52 GMT+0000 (UTC)

#servicenow #javascript #duplicate

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension