Commit 0141318
authored
Update script.js
This script identifies duplicate tickets or tasks in ServiceNow where the number field is not unique. Normally, ServiceNow enforces unique ticket numbers, but misconfiguration at the dictionary level can lead to duplicates.
The solution uses GlideAggregate to:
-Group records by number and count occurrences.
-Filter duplicates where the same number appears more than once.1 parent 76ba1c9 commit 0141318
File tree
1 file changed
+14
-7
lines changed- Server-Side Components/Background Scripts/Get Duplicate
1 file changed
+14
-7
lines changedLines changed: 14 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
8 | 15 | | |
0 commit comments