Archiving closed Salesforce records is a series of decisions, not a single export. Before you move anything, settle how long each record type must be kept, what format the archive will use, who signs off on deletion, and how someone will find a record years later. This checklist walks through each decision in the order teams need them.
Set the retention period for each record type
Retention is set per record type, not once for the whole org. Accounts, contacts, cases and opportunities often have different legal, financial and operational reasons for being kept, so a single number rarely fits. Write down the period for each object you plan to archive, and note the trigger that starts the clock. For some teams the trigger is the date a record was closed. For others it is the date of the last related activity or the date a contract ended. Pick one trigger per record type and state it in the policy.
A retention period does not tell anyone what to do when it expires. Add a column that says what happens at the end of the period: deletion, a second review, or transfer to a longer-term store. Records under a legal hold or an open dispute should be excluded from the expiry rule until the hold is lifted, and the table should name the person who lifted it.
Questions to answer for each record type
- Which regulation, contract or internal policy requires keeping the record, and for how long?
- Which event starts the retention clock, and is that date stored reliably on the record?
- Are there child records, such as activities, notes or attachments, that must follow the parent?
- Does anyone outside the business rely on the record, such as a customer, a partner or an auditor?
Record the answers in one table with one row per object. Leave a cell blank as an open item rather than filling it with a guess. A blank cell is easy to chase, while a wrong number can sit in the policy for years.
Choose an export format that can be read years from now
The export format decides whether the archive is still usable after the original system has changed or been retired. Plain delimited text with a stable header row is a safe default for tabular data, because most spreadsheet and database tools can open it later. Keep attachments in their original format rather than converting them, and keep a separate index that maps each file to its parent record ID.
Test the format before the first real run. Export a small sample, reopen it in a different tool, and confirm that date values, time zones, multi-line text fields, currency amounts with their currency noted alongside, and special characters such as accents all come through intact. A date that shifts by one day is much easier to catch on fifty records than on fifty thousand. Record the test result with the date and the name of the person who ran it.
Export format is also where many migrations go wrong. If the archive will later feed a move to a new org, the field mappings need to be fixed at this stage rather than after the export runs. The steps in data migration and integration work describe how those mappings are usually built and tested, and they are worth reading before the export is designed.
Name who approves deletion and record the approval
Deletion needs a named approver, and the approval needs to be recorded before any data leaves the live system. Small teams often use one approver. Larger teams usually split the role between the business owner of the data and a system administrator who carries out the work. The two roles should stay separate, because a check performed by the same person who ran the export loses much of its value.
Each approval record should contain the following fields for each batch:
- Batch name and the record types it covers
- Date range of the closed records in the batch
- Count of matching records in the live system
- Count of records written to the archive file
- Name of the business owner who approved the batch, and the date of approval
- Name of the administrator who ran the export and the deletion step
- Location of the archive file and its hash value
Hash the export file when it is written and store the hash with the approval record. When someone asks later whether a file has changed, the stored hash answers the question without anyone comparing contents by eye. A hash does not show what changed, so keep the original file at the recorded location and do not overwrite it with a corrected version.
Ongoing ownership matters as much as the first approval. Someone has to keep the retention table current, rerun the export when fields change and answer requests for archived records. Teams without someone in that role often look at ongoing arrangements, and the Salesforce support and maintenance page describes what that work involves.
Plan how the archive will be searched later
An archive that cannot be searched is just storage. Decide the search keys before the export runs. At a minimum, include the original record ID, the object type, the closed date and the name of the parent account or customer. Store these as plain columns in the index file rather than relying on a tool’s internal ranking to find them later.
Think about who will do the searching. It is usually a support agent, a finance reviewer or an auditor who already has the record ID from an email thread, a payment reference or a ticket. A search by original ID should return the record in one step. A search by name should return a short list the person can scan.
Check that the archive answers the questions it was built for. Pick five real requests from the past year, such as a customer asking for their closed cases, and time how long each takes to answer from the archive. If a request needs someone to open raw files by hand, add the missing key to the index and run the export again for that batch.
Run the closing checklist before anything is deleted
Work through this list in order. Each step depends on the one before it, and skipping ahead is a common reason an archive has to be redone.
- Confirm the retention period for each record type and check that the trigger date is populated for the records in scope.
- Export a sample batch, reopen it in a different tool and record the result of the test.
- Run the full export for the batch and write the count of exported records into the approval record.
- Compare the archive record count with the count of matching live records, using the same filter for both.
- Calculate the hash of the archive file and store it with the archive location in the approval record.
- Obtain the business owner’s approval and record their name and the date.
- Delete or deactivate the live records after step six is complete.
- Run two or three lookups against the archive using the search keys and confirm each returns the expected record.
Repeat the count comparison if live records change between export and deletion. Records get edited, reopened and merged, and a batch that was accurate on Monday can be out of step by Friday. Export and delete within the same working day where you can. If the gap has to be longer, rerun the count comparison and update the approval record with the new counts.
Scope the first archive with discovery work
Teams that cannot say which records are in scope often find the list grows each time it is discussed. Before writing the retention table, list each object that holds closed business records, including objects built for a single project that nobody uses now. The steps in needs assessment and discovery show how that inventory is usually gathered, and they matter most when the people who built the older objects have left.
For each object, record the number of records, the closed dates of the oldest and newest records, and the person who knows what the object is for. A blank in the last column means more discovery is needed before anything is archived. Business owners usually spot objects that administrators did not know were still in use, so review the inventory with them before the retention table is signed off.
For help planning this work, see Salesforce implementation.
Questions about archive scope and retention decisions
Should the retention period start when a record is closed or when it is archived?
Use the event that the policy itself names. The closed date is simpler to audit when the record stores it, while the archive date depends on when the batch happened to run. Many policies point to a business event instead, such as the end of a contract or the last payment. Check that the record type has a reliable date for that event before you choose it as the trigger.
What should happen when someone asks for a record that was archived?
The request should go to the owner named in the approval record, and the answer should come from the archive index. Log the request, the record ID and the date the answer was given. If the record has been restored or re-created, note that in the index so the next lookup returns the correct version.
Who should own the archive after the project ends?
Name a person rather than a shared mailbox, and record the handover date in the approval log. The owner keeps the index current, answers retrieval requests and decides when an archived batch has passed its retention period.
How often should the retention table be reviewed?
Review it when a regulation, a contract template or an internal policy changes, and also on a fixed calendar date the owner has agreed to. An annual review is a common choice. Put the review date at the top of the table so the next reader can see when it was last checked.