- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2020 09:17 PM
Hi,
I want to see the duplicate email users in the list view of User Table without using of show matching. Help me in this.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2020 11:38 PM
Hi,
please use [IS ONE OF] operator
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2020 11:39 PM
Hi,
it worked well
For multiple emails use [IS ONE OF] operator
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2020 10:54 PM
Hi Kajal,
It is asking HI credentials for downloading the script include.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2020 11:04 PM
check this blog
Search for Duplicates & Delete Based on 2 Columns
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2020 11:06 PM
Hi,
you can try background script for this and print those users
var duplicate = new GlideAggregate('sys_user');
duplicate.addQuery('active','true');
duplicate.addAggregate('COUNT', 'email');
duplicate.groupBy('email');
duplicate.addHaving('COUNT', '>', 1);
duplicate.query();
while (duplicate.next()) {
gs.info(duplicate.email);
}
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2020 11:09 PM
Hi Ankur,
It is working on back ground script but it is showing the results in list view while calling the function in script include. please refer the above images.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2020 11:10 PM
Hi,
this blog should help you showing in list with the script include approach
Find duplicate user email (or anything else)
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader