Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Rahman123/salesforce-archive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Features

  • 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

Limitations

  • 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

Usage

Archive

ArchiveStoreBatch storeBatch = new ArchiveStoreBatch('SELECT Id, ... FROM ...');
Database.executeBatch(storeBatch);

Restore

Archive__c archive = ... // select your archive
ArchiveRestoreBatch restoreBatch = new ArchiveRestoreBatch(archive);
Database.executeBatch(restoreBatch); 

About

A utility for archiving records and free up data storage in a Salesforce org.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages