Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
 var g = new GlideRecord('sys_user_grmember');
  g.addQuery('name', 'CTS STC Cluster Zone 1');
  g.query();
  var n=0;
  while (g.next()) {
     if (n == 0 ) {
       gs.print('members are: ');
     }
     gs.print(g.user.user_name + ';');
     n++;
  }
  gs.print(n + " members in group");