In ServiceNow how to increase the archive Data duration from 3 to 5years?

Rajat Singhal1
Tera Contributor

In ServiceNow how to increase the archive Data duration from 3 to 5years?

5 REPLIES 5

suvro
Mega Sage
Mega Sage

You can edit the Archive Destroy rule for that particular table to configure the duration for which you want the data in the archived table before it is destroyed

https://<instance_url>/nav_to.do?uri=%2Fsys_archive_destroy_list.do%3Fsysparm_userpref_module%3D5a0205737f33020097385212bdfa9149%26sysparm_clear_stack%3Dtrue

Sulabh Garg
Mega Sage
Mega Sage

Hello Rajat

Pls check the below KB, it has answers on all Archival related queries

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0782323

 

Archive Destroy Rule:

Archive Destroy rules delete archived data after a specified period of time. The Archive Destroyer batch process runs the Archive Destroy rules on archived data. You can configure some parameters of the batch process.

Navigation: System Archiving > Archive Destroy Rules

 

Create a scheduled job for each destruction rule you want to execute with the following script (Note: Ensure to test in sub-production instance first!):

new GlideArchiver().archiveDestroyByRule(xxxx);
where xxxx is the sys_id of the destroy rule.

 

Please Mark ✅ Correct/helpful, if applicable, Thanks!! 

Regards

Sulabh Garg

Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg

Aman Kumar S
Kilo Patron

Hey,

Try updating "Archive Destroy rule" for the archive table that you have created.

 

Below link has all the best practices for archive

https://www.servicenow.com/content/dam/servicenow-assets/public/en-us/doc-type/success/quick-answer/archive-historical-data.pdf

Best Regards
Aman Kumar

Community Alums
Not applicable

You can increase the date parameter in the Archive Rule by using the "relative" condition.  In my screenshot I am archiving records closed more than 7 years ago from today.

 

relative.jpg