Exclude a table from Import Set Cleaner
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 06:50 AM
Hi Team,
I want to exclude a table from Import Set cleaner Scheduled Job. I have taken a copy of the OOB Script Include "ImportSetCleanerCustom" and added "table_name!=MY_TABLE_NAME" query to '_queryIsets' function. But somehow it is not working. Can someone please help me on this.
Thanks In Advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 08:20 AM
Hi,
Can you please share your script?
Thanks and Regards,
Saurabh Gupta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 09:09 AM
Below is the OOB Script Include link
in "_queryIsets" function I filtered out my table and somehow it is not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 09:18 AM
Hi,
You can try below change the function/method "_tableClean" as below--
_tableClean : function(table, query) {
if(table=='your_table_name')
return;
var tc = new GlideTableCleaner(table, this.daysAgo*86400000, 'sys_created_on');
if (query)
tc.setConditions(query);
tc.clean();
},
Thanks and Regards,
Saurabh Gupta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 08:51 AM
Hi, can you share the code what you implemented to review?
Suresh.