Find duplicate Knowledge Articles<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } // FOR SCOPED, by number AND versionvar seen = {};var gag = new GlideRecord('kb_knowledge');gag.query();while (gag.next()) { var key = gag.number + '|' + gag.version; // composite key if (seen[key]) { gs.info('Duplicate Found: ' + gag.number + ' (Version: ' + gag.version + ')'); } else { seen[key] = true; }} // FOR SCOPED, by number AND version /* You will need to set the scope of the Knowledge Base in Scripts - Background before running, or else you will get a bunch of errors - for example, if I wanted to see if there were duplicates in my HR Knowledge Base, I'd set the scope in Scripts - Background to 'sn_hr_core' before running the script */ var seen = {};var gag = new GlideRecord('kb_knowledge');gag.query();while (gag.next()) { var key = gag.number + '|' + gag.version; // composite key if (seen[key]) { gs.info('Duplicate Found: ' + gag.number + ' (Version: ' + gag.version + ')'); } else { seen[key] = true; }}