Auto flush not clearing records
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-27-2018 03:03 AM
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?
- Labels:
-
Automated Test Framework

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-27-2018 03:09 AM
Hi
Maybe you need to add age seconds so that system waits that much time before deleting the records.
Go through this once :-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-27-2018 03:48 AM
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-27-2018 03:52 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-27-2018 03:56 AM
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?