GlideTableCleaner vs GlideMultipleDelete

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2020 09:53 AM
What is the difference between GlideTableCleaner and GlideMultipleDelete? Both of these APIs are referenced in the Script Include ImportSetCleaner. Neither API appears to be documented.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2020 10:04 AM
Hi ,
Here is a link which will help you.
https://community.servicenow.com/community?id=community_question&sys_id=4d81cf29db98dbc01dcaf3231f961929
If it helps ,Please mark Correct and Helpful.
Warm Regards,
Milind

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2020 10:09 AM
I didn't find anything as well.
But this is what my understanding is.
GlideTableCleaner will not trigger a workflow or business rule. So it is fast and you can't recover data once deleted.
GlideMultipleDelete will trigger any workflow or BR that has to trigger during deletion. You will have option to recover data after deletion from Deleted Record Table.
Below HI portal link may help
https://hi.service-now.com/kb_view.do?sysparm_article=KB0717791
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2020 10:11 AM
You are correct in that both are not officially documented, but if your search around a bit you can find some information. As best I understand the:
GlideMultipleDelete is called through UI actions to delete records that are selected in a list view. I usually stick with gr.deleteMultiple().
GlideTableCleaner is called by - well - the table cleaner process which is documented somewhat here
That is an automated process that keeps certain types of tables from growing in an uncontrolled manner over time. I personally leave that one alone and haven't found too many use cases where it was called for.
Hope this helps!
If this was helpful or correct, please be kind and click appropriately!
Michael Jones - Proud member of the CloudPires Team!
Michael D. Jones
Proud member of the GlideFast Consulting Team!