All articles

Platform

Field Audit Trail vs field history tracking: the retention decision orgs get wrong

An auditor asks for two years of changes to one field and your field history stops eighteen months back. That gap is the line between free field history tracking and Field Audit Trail, the paid Shield add-on. What each one keeps, the 20-field and 200-field caps, the big object the archive lives in, and the retention policy you set in metadata, not clicks.

An auditor asks for every change to one Opportunity field over the last two years. You open the record’s field history, scroll back, and the trail stops around eighteen months ago. The older changes are gone, and nobody decided to delete them. The platform did, on schedule, because that is what standard field history tracking does.

That gap is the whole subject of this post. Salesforce has two features that sound like one, and the difference between them is a retention cliff that orgs discover at the worst possible moment.

My advice up front: standard field history tracking is free, shallow, and fine for most orgs. Field Audit Trail is a paid Salesforce Shield add-on that keeps far more, for far longer, in a big object you query differently.

Choose between them by your actual retention requirement, written down, not by a vague sense that more audit is safer. And before you reach for either, know that neither one is a backup, and neither one tracks the field types people most often assume they do.

Three things that get confused

Start by separating three features that share a vocabulary.

Setup Audit Trail records configuration changes: who edited a workflow, changed a profile, added a field. It is not about data, it keeps about 180 days, and Field Audit Trail does not extend it. If your question is “who changed the automation”, this is the trail, and it is a different conversation.

Field history tracking records changes to the values in records: the old value and new value of a field, who changed it, and when. This is the one on most objects today.

Field Audit Trail is field history tracking with the limits lifted and a retention policy you control, sold as part of Shield. Everything below is about the last two.

What standard field history tracking gives you free

Turn on field history tracking for an object and you can track up to 20 fields per object. That cap is firm, and raising it is not a setting. You go through Salesforce Support or your account executive, and that is before you have paid for anything (Gearset, audit trail limits).

Retention is the part that bites. The history is available for roughly 18 months through the UI, and up to 24 months through the API (Salesforce Help, field history storage and limits). After that the platform deletes it. The data does not count against your data storage, which is the one piece of good news, so there is no storage reason to track fewer fields than you need.

For a lot of orgs, that is enough. Eighteen months of value changes on twenty fields covers most operational questions. The trouble starts when a compliance, legal, or regulatory requirement asks for a horizon longer than the platform keeps, because no amount of configuration moves that cliff on standard tracking.

What Field Audit Trail buys

Field Audit Trail is the answer to the retention cliff, and it is a Shield capability you license, alongside Platform Encryption and Event Monitoring.

The official Winter ‘27 implementation guide sets the numbers: you can keep history for up to 200 tracked fields per object, with retention listed as until deleted (Salesforce Field Audit Trail Implementation Guide, Winter ‘27). You will still find third-party guides quoting 60 fields and a 10-year cap. Those are outdated. Go by the current implementation guide, which is 200 fields and a policy-defined horizon.

By default, Field Audit Trail archives data after 18 months in production and after one month in sandboxes. That default is a starting point, not the design: the point of the feature is that you set the policy.

The archive is a big object, and that changes how you read it

Archived field history does not live in the standard field history table. It lives in the FieldHistoryArchive big object, and that detail decides how you query it, who can see it, and what it costs you in effort.

Access is gated by the Retain Field History permission, so the archive is not readable by anyone who happens to see the record.

Querying it is not ordinary SOQL. Like any big object, it answers queries only along its index: you filter by FieldHistoryType first, then by either ParentId or CreatedDate (Salesforce Developers, Field Audit Trail). You do not get to filter by an arbitrary field and sort however you like.

That constraint is the hidden cost of the feature. A big object scales to billions of rows, which is exactly why you would use it for a decade of history. The trade is that retrieving a specific slice is a bounded, index-shaped query, not the free-form reporting your team is used to. Plan the reports and the exports you will need against that shape before you promise an auditor a self-serve view.

Setting the retention policy in metadata

You define how long history is kept per object through the HistoryRetentionPolicy, and you deploy it, you do not click it.

The policy carries three values: archiveAfterMonths, how long changes stay in the standard history before they move to the archive; archiveRetentionYears, how long the archived data is then kept; and gracePeriodDays. You set these and deploy them with the Salesforce CLI or another Metadata API client (Salesforce Field Audit Trail Implementation Guide, Winter ‘27).

The policy is part of the object’s own metadata, so it rides inside the object definition you deploy:

<?xml version="1.0" encoding="UTF-8"?>
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
    <historyRetentionPolicy>
        <archiveAfterMonths>18</archiveAfterMonths>
        <archiveRetentionYears>7</archiveRetentionYears>
        <gracePeriodDays>30</gracePeriodDays>
        <description>Opportunity field history, 7-year retention</description>
    </historyRetentionPolicy>
</CustomObject>

Because the policy is metadata, it belongs in source control and moves through your environments like any other deployment, which is the right place for a number that a regulator may one day ask you to justify. Write the retention horizon down, deploy it deliberately, and keep the change in your DevOps history.

What neither feature does

Two limits catch people regardless of which feature they are on.

First, not every field is trackable. Formula fields, roll-up summary fields, auto-number fields, long text areas, and multi-select picklists cannot be tracked by either feature, and encrypted text fields have their own constraints. If the field you most need a history on is a formula, neither feature will give you one, and you need a different pattern to capture it.

Second, neither is a backup. Field history and Field Audit Trail record the changes to tracked fields. They do not restore a deleted record, recover an untracked field, or stand in for a real backup and restore capability. An audit trail tells you what happened. It does not put it back.

The decision

Most orgs do not need Field Audit Trail. If your retention requirement fits inside eighteen months and twenty fields per object, standard tracking is the whole answer, and buying Shield for audit alone is spending money to solve a problem you do not have.

You need Field Audit Trail when a written requirement outruns the free tier: a regulator, a contract, or a legal-hold policy that demands years of change history, or an object where twenty tracked fields is not enough.

That requirement is the business case, and it is worth having on paper before the Shield conversation, because Shield is priced as a bundle and the other two components, Platform Encryption and Event Monitoring, may or may not be things you want. Let the retention requirement drive the purchase, and size the policy to the requirement, not to the maximum the platform allows.

What I’d do first

Write down the actual retention requirement, per object, in months or years, and where it comes from. That one sentence decides everything else.

If it fits the free tier, confirm the right fields are tracked, confirm you are not trying to track a formula, and move on. If it does not, scope Field Audit Trail against that requirement: which objects, how many fields, how long, and what the HistoryRetentionPolicy should say. Then build the policy as metadata, deploy it to a sandbox, and run the index-shaped query you will need against the archive before you rely on it in production. The time to discover how the FieldHistoryArchive queries is in a sandbox, not when an auditor is waiting. Pair it with a Security Health Check pass so the audit posture and the retention posture are decided together.

Understanding the basics

What is the difference between field history tracking and Field Audit Trail?

Field history tracking is a free, standard feature that records value changes for up to 20 fields per object and keeps them for roughly 18 months in the UI, up to 24 through the API. Field Audit Trail is a paid Salesforce Shield add-on that raises the cap to up to 200 fields per object and keeps history for a horizon you define in a retention policy, archiving it in the FieldHistoryArchive big object.

How long does Salesforce keep field history?

With standard tracking, about 18 months through the UI and up to 24 months through the API, after which the platform deletes it. With Field Audit Trail, retention is defined by your HistoryRetentionPolicy per object, so you set how long archived history is kept rather than accepting a fixed window.

Does field history count against data storage?

No. Field history tracking data does not count against your Salesforce data storage limits, and Field Audit Trail archives its data in a big object that is designed to scale to very large volumes. Storage is not the reason to track fewer fields; the 20-field cap on standard tracking is.

What fields can’t be tracked?

Formula fields, roll-up summary fields, auto-number fields, long text areas, and multi-select picklists cannot be tracked by field history tracking or Field Audit Trail, and encrypted text fields have additional constraints. If a field you need history on is one of these, neither feature will capture it and you need a different approach, such as recording the value change elsewhere when it happens.


Retention is a compliance decision wearing a configuration costume, and the wrong default is the kind of thing nobody notices until an audit. If you want your field history, Shield posture, and retention policies scoped to what you have to prove, and deployed as metadata you can defend, talk to us.

Keep reading

All articles