Schedule Import Set Table cleanup for one particular table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2023 07:44 AM
good day,
i need to schedule a import set table cleanup for one specific table.
The import brings in 400,000+ records each day and i would like to schedule this to be cleaned up right after the import happens.
How do i go about doing this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2023 08:03 AM
There is a OOTB scheduled job-Import Set Deleter which deletes entries of import set table created 7 days ago.
You should create seperate scheduled job for clean up of a specific table ,refer OOTB scheduled job.
Thanks,
Manjusha Bangale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2023 08:09 AM
i can see that in the Scheduler Cleanup but its not specific to that table but all import tables in general
How Do i do it for that one table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2023 12:01 AM
You can create a seperate scheduler to delete records of a particular import set table
Use below script in your scheduled job
var gr = new GlideRecord("import_set_table_name");
gr.query();
gr.deleteMultiple();
If my answer solved your issue, please mark my answer as ✅Correct & 👍Helpful based on the Impact
Thanks,
Manjusha Bangale