var dupeRecords;
dupeRecords = getMultiFieldDupes(
'incident', //Table name
['short_description', 'assignment_group', 'assigned_to'], //Fields to check for duplicates
['short_description','assigned_to'], //Fields that must not be blank
true //Get the sys_ids of the records with duplicates
);
//Print out the results:
gs.info(
'Found ' + dupeRecords.length + ' duplicate types:\n' +
JSON.stringify(dupeRecords, null, 2)
);