Auto flush not clearing records

johnrob18
Giga Guru

I am running an auto flush, trying to delete all the Inactive Incident records using the para listed below - this does not seem to be working as the records still exist? Any ideas?

find_real_file.png

4 REPLIES 4

Omkar Mone
Mega Sage

Hi 

Maybe you need to add age seconds so that system waits that much time before deleting the records.

Go through this once :-

https://docs.servicenow.com/bundle/london-application-development/page/administer/auto-test-framewor...

Perhaps I am missing the point - can I delete all the incident records that have been created in testing by everyone using this flush table facility?

Many of the records are legacy that have been imported onto the instance - is there another way of clearing all incident records on the instance?

You can make use of Fix Scripts. There you can GlideRecord and query records according to your query condition and the using deleteMultiple(). Even you can use background script in this case.

Unfortunately I am not a scripter - surely there must be a way to clear down data from ServiceNow without having to reinvent the wheel every time some one does it?