Salesforce data retention: red-brick gothic university building at dusk

Retention criteria: deciding what to keep

Deciding which Salesforce records to keep, object by object, and why that decision comes before the data scope is set.

Retention criteria define, for each object and source system, which records are within scope. They are among the first decisions in any remediation or migration, and often put off, because answering them requires the business to state what it is willing to leave behind. Until they are settled, the in-scope record count, and any estimate of effort built on it, is provisional.

How Salesforce data retention varies by object

The criteria are written object by object, but they often go beyond status and age: a record may be kept because of what it is linked to, its record type, the business unit or region it belongs to, or a legal hold. Accounts are commonly kept by type (customer, former customer, prospect or partner) and recent activity, or because of what is linked to them, such as open opportunities, active contracts or open cases; where the type is missing or unreliable, defining it is itself a decision to be recorded. Opportunities are commonly kept by stage and age. Whatever the criteria, consider who will own each open opportunity: it needs an active owner to be worked, and where renewals are generated from contracts, an inactive owner might stop the renewal from being created. Contracts are commonly kept while they or their subscriptions remain active, and expired contracts are sometimes kept too, for renewal history, ARR trends and audit. Activities, emails and notes are commonly kept by age and by whether their parent records are kept. Files follow the same rules, but size is a factor too: very small files are often incidental images rather than content worth keeping. Keeping records also counts against the org's storage limits: records against data storage, and files and attachments against file storage.

What an agent gets wrong when retention is wrong

An agent reasons from what the records say: it can weigh an old activity date or an inactive flag, but a record that is out of date and still looks current can mislead it. A contact who left the customer years ago might look no different from one who is still there unless someone has flagged it, removed it or kept it out of the agent's view. Remove too much, though, and the agent loses history it needs, such as a customer's past purchases and price changes. Retention decides what stays in the org; flags and the agent's access shape what it relies on.

Writing data retention criteria

  • Confirm what the law, regulators or finance require to be kept, and which personal data privacy rules, such as GDPR, say should not be kept longer than needed, before writing any other criterion, since those obligations take precedence.
  • State each criterion as a rule a query can test, not as a general wish: for example, "accounts with an opportunity won in the last twenty-four months, or an active contract", rather than "active accounts".
  • Record each criterion with the record counts it produced and the date they were taken, so the numbers can be traced later.
  • Decide the default owner for records whose original owner has left the company, since ownership is required on most objects and an inactive owner can sometimes block progression.
  • Treat record types explicitly: customer and partner accounts, or new-business and renewal opportunities, may carry different criteria.
  • Identify picklist fields whose values will change in the new design, such as opportunity stages or case statuses, because a retention rule written against the old values must be translated.

Signing off retention criteria

Retention criteria are signed off by someone with authority over each object's data, and the results are later checked against them. A criterion that cannot be signed is not yet a criterion.

Assess the data before the agents depend upon it

The first call is with the practitioners who would do the work, not a sales intermediary. The measures come first and the estimate follows.

Talk to our experts