Need a fix script to cleanup the duplicate lab id records.

Vasavi O
Tera Contributor

Hi All,

 

I got a requirement to remove the duplicate records , I have over hundreds of duplicate records in u_laboratory_id table, there are more than one record for each lab id with duplicate active '1' flag , but there should be only one active flag '1' record so I need to keep the records which are having highest rowid and need to cleanup the remaining ones.

 

 Please help with the script or if you have any other method to resolve this , Please let me know.(Iam attching the image here for example I have filterd one lab id there).

1 REPLY 1

A-Sprague
ServiceNow Employee
ServiceNow Employee

It appears a similar issue was solved utilizing this solution. 


Solved: Remove Multiple Duplicate Model Script help

Let me know if this helps 👍