Data storage is calculated by Salesforce at roughly 2KB for each record. This utility provides a toolkit to archive your data using a smaller number of records, without losing relevant information.
- Free up to 94% of the data storage for unused records
- Ready to use batch classes for archiving/restoring data
- Automatically sends an email when the task is completed
- Only works if your records are smaller than 32k
- You won’t be able to use the archived information on Salesforce for any purpose until you restore
- You will lose all the readonly fields
- Does not support related objects
ArchiveStoreBatch storeBatch = new ArchiveStoreBatch('SELECT Id, ... FROM ...');
Database.executeBatch(storeBatch);Archive__c archive = ... // select your archive
ArchiveRestoreBatch restoreBatch = new ArchiveRestoreBatch(archive);
Database.executeBatch(restoreBatch);