Resolved! How to leave top 100 records and delete the remaining ?
Hi Experts, I got a requirement to leave top 100 records and delete the remaining. var gr = new GlideRecord("custom table");gr.orderByDesc('created');gr.setLimit(100);gr.query();while(gr.next()){gr.deleteRecord();} By using above script i am able to ...