var ga= new GlideAggregate('task');
ga.addAggregate('COUNT', 'number');
ga.addHaving('COUNT', '>', 1);
ga.query();
var dupls=[];
dupls.push("The following " + ga.getRowCount() + " records are duplicate on number ");
while (ga.next()) {
var DuplLine=ga.getAggregate('COUNT', 'number') + " => " + ga.getElement('number');
dupls.push(DuplLine);
gs.print(DuplLine);
}
ga.addAggregate('COUNT', 'number');
ga.addHaving('COUNT', '>', 1);
ga.query();
var dupls=[];
dupls.push("The following " + ga.getRowCount() + " records are duplicate on number ");
while (ga.next()) {
var DuplLine=ga.getAggregate('COUNT', 'number') + " => " + ga.getElement('number');
dupls.push(DuplLine);
gs.print(DuplLine);
}
Comments
Post a Comment