ServiceNow import set - clean the import sets
this runs automatically but you can also run it in a background script set to a lower number of days ago
var ic = new ImportSetCleaner();
// delete import sets and their related import set rows
// that were created more than or equal to 7 days ago>> changed to 1 day
ic.setDaysAgo(1);
ic.clean();
Just cleaning out a table:
var ic = new ImportSetCleaner('tableYouNeedToClear');
ic.setDataOnly(true);
ic.setDaysAgo(1);
ic.clean();
That deletes all tables, and their records. What about just cleaning out a table?
ReplyDeletevar ic = new ImportSetCleaner('tableYouNeedToClear');
ic.setDataOnly(true);
ic.setDaysAgo(1);
ic.clean();
thank you for feedback
ReplyDelete