We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63dc0d4 commit a6ae81dCopy full SHA for a6ae81d
Background Scripts/Get Duplicate/readme.md
@@ -0,0 +1,3 @@
1
+Using GlideAggregate function to find out tickets (tasks) with same number. OOB there happens to be a Unique checkbox at dictionary level
2
+and if in case not set to True it might create duplicate numbered tickets.
3
+Script will help find, ticekts if any.
Background Scripts/Get Duplicate/script.js
@@ -0,0 +1,8 @@
+var dpchk = new GlideAggregate('task');
+dpchk.groupBy('number');
+dpchk.addHaving('COUNT', '>', 1);
4
+dpchk.query();
5
+while(dpchk.next())
6
+{
7
+ gs.print(dpchk.number);
8
+}
0 commit comments