Skip to content

How to set up field history tracking in Salesforce

In Setup, open Object Manager, pick the object, go to Fields & Relationships and click Set History Tracking. Tick Enable History for the object, choose up to 20 fields (six on tasks and events), save, then add the History related list to the page layout so people can see the changes.

By CobyLast reviewed

Field history tracking records changes to the fields you choose. For each change Salesforce logs the date and time, the user who made it, and the old and new values, and you see them in the record’s History related list or in history reports. Setting it up takes two jobs: switch tracking on for the object and its fields, then put the History related list on the page layout.

Checked on 3 December 2026 against Trailhead, Salesforce Help knowledge articles and the Salesforce developer documentation. If you have no admin to do this, our fractional Salesforce admin service covers set-up jobs like this one.

Before you start

Check three things first: your edition, how many fields you can track, and whether the fields you want can be tracked at all.

What field history tracking covers

PointWhat Salesforce says
EditionsProfessional, Enterprise, Unlimited, Performance and Developer Editions
Fields per objectUp to 20 standard or custom fields
Tasks and eventsUp to 6 fields each
Raising the limitSalesforce Support cannot raise it. You buy Field Audit Trail or an add-on product through your Salesforce account executive
Fields you cannot trackFormula, roll-up summary and auto-number fields; Created By and Last Modified By; Expected Revenue on opportunities; Master Solution Title and Master Solution Details on solutions
External objectsField history tracking is not available
From the Salesforce Help knowledge article on the field history limit (published 13 October 2026), the Trailhead project "Customize a Salesforce Object", the Field Audit Trail Implementation Guide and the Metadata API Developer Guide, checked 3 December 2026.

Our guide to field history tracking limits explains how long Salesforce keeps the history and what happens to it after that.

Switch on tracking for an object

Trailhead’s steps use Account as the example.

  • From Setup, click Object Manager and select the object, for example Account.
  • Select Fields & Relationships, and click Set History Tracking.
  • Select Enable Account History (or the equivalent for your object).
  • Tick each field you want to track, up to the limit for that object.
  • Click Save.

Tracking is set per field, so you can come back to the same page later to add or swap fields. If you build in a sandbox and deploy with the Metadata API, the same settings are two flags: enableHistory on the object and trackHistory on each field. The Metadata API Developer Guide says trackHistory can only be true when enableHistory is also true on the object.

Custom objects

Custom objects can be tracked as well. The Metadata API describes enableHistory as a setting for custom objects that is "also available for standard objects", and the Field Audit Trail guide lists "custom objects with field history tracking enabled" alongside the standard ones. The 20-field limit applies in the same way.

Which standard objects support it

The Field Audit Trail guide’s list of objects whose field history it can archive includes most of the common ones: accounts (including person accounts), assets, campaigns, cases, contacts, contracts, entitlements, leads, opportunities, orders, price books, products, service appointments, service contracts, solutions and work orders, among others. On accounts, the Metadata API notes that history tracking includes person account history.

Choose the fields

Twenty fields is the default allowance for most objects, so pick on purpose. The table below is our advice on where to start in a typical Sales Cloud or Service Cloud org; change it to match how your team works.

Our suggested first fields to track

ObjectFields we would start withWhy
AccountAccount Owner, Type, and any status or tier field you report onOwnership and status changes are what people ask about later
OpportunityOwner, and any custom fields for forecast category or deal riskStage, Amount, Probability and Close Date are already kept in Opportunity History, so they do not need a slot
LeadLead Owner and Lead StatusShows routing and how long leads sit in each status
CaseOwner, Status and PriorityShows escalations and hand-offs between teams
ContactEmail and any consent or opt-out fieldsA record of when contact details or preferences changed
The Why column is our view. The Opportunity History point is from the Salesforce object reference for OpportunityHistory, checked 3 December 2026.

Salesforce’s object reference says OpportunityHistory represents a change to the Amount, Probability, Stage or Close Date fields of an opportunity, while OpportunityFieldHistory covers changes to any opportunity field you track. In our experience it is better to leave a few slots free for the next request than to fill all twenty on day one.

Switching tracking on does not put the history in front of users. You add the related list to each page layout that should show it. These are Trailhead’s steps for Account:

  • From the Setup menu (the gear icon) on an account record, select Edit Object.
  • Click Page Layouts, then the layout you want, for example Account Layout.
  • In the palette, click Related Lists.
  • Drag the Account History related list onto the layout.
  • Click Save. When asked whether to overwrite users’ related list customisations, Trailhead’s steps click No.
  • Refresh the record page to see the new related list.

If your org has several page layouts for the object, we would repeat this for each one that should show the history. Trailhead says field history can also be viewed through History reports, and our guide on reporting on field history covers those.

Decide who can see the history

Salesforce’s object reference says the history objects for cases and opportunities respect "field level security on the parent object", so a user who cannot see a field should not see its old and new values either.

We would check two things before you announce the change. First, that the people who need the history have the related list on their page layout. Second, that sensitive fields you track are hidden by field-level security from anyone who should not see them, because tracking a field does not change who can see it.

Check that it works

Test it on a record you can safely change, in a sandbox if you have one.

  • Open an existing record and change one of the tracked fields.
  • Refresh the record and look at the History related list. You should see the field, the old value, the new value, your name and the time.
  • Change a field you did not track and confirm it does not appear.

Do not test by creating a new record. A Salesforce Help knowledge article explains that when a record is created, history logs only the creation event, with the user and the time. Values typed into tracked fields during that first save are not treated as changes, so they do not appear. The exception is automation: if Apex, a flow, Process Builder or a workflow rule writes to tracked fields while the record is being created, those values are included in the creation entry.

Two more things can look odd at first. On case history, the object reference says the old and new values hold up to 255 characters, and that when a lookup field such as a contact changes, two rows are added: one with the name you see in the app, and one with the record ID that only the API returns.

What to do once it is running

Trailhead says field history is kept for 18 months in the Salesforce interface and up to 24 months through the API. Our advice is to switch tracking on before you need it, because we would not expect to find any change made before the field was tracked.

  • Write down which fields you track on each object and why, so the next admin knows what each slot is for.
  • Review the list once a year and swap out fields nobody looks at.
  • If you must keep history for longer than Salesforce does, plan an export or look at Field Audit Trail, which our limits guide covers.

Getting help with set-up

Black Cloud is a UK Salesforce partner that works only on Salesforce, across the UK and Ireland. Our fractional Salesforce admin service gives you part of a senior admin’s time each month, for jobs like setting up field history tracking, page layouts and field-level security. Our managed service packages start at £950 a month for 5 hours, excluding VAT. If you want to know what else in your org needs attention, Barometer is our consultant-led health check: a score out of 100 and every issue in order of priority, read-only, so nothing changes until you say so.

Sources

  1. Trailhead, "Enable Account Field History Tracking" (Customize a Salesforce Object project) (checked 3 December 2026)
  2. Trailhead, "Get Started with Field Audit Trail" (checked 3 December 2026)
  3. Salesforce Help knowledge article, "Increase the Salesforce Number of Fields to Track History per Entity Limit for Field History Tracking" (published 13 October 2026) (checked 3 December 2026)
  4. Salesforce Help knowledge article, "Understanding Salesforce Field History Tracking on Record Creation" (published 3 July 2026) (checked 3 December 2026)
  5. Salesforce Developers, "Field Audit Trail" (Field Audit Trail Implementation Guide) (checked 3 December 2026)
  6. Salesforce Developers, Metadata API Developer Guide, "CustomObject" (checked 3 December 2026)
  7. Salesforce Developers, Metadata API Developer Guide, "CustomField" (checked 3 December 2026)
  8. Salesforce Developers, Object Reference, "CaseHistory" (checked 3 December 2026)
  9. Salesforce Developers, Object Reference, "OpportunityFieldHistory" (checked 3 December 2026)
  10. Salesforce Developers, Object Reference, "OpportunityHistory" (checked 3 December 2026)
  11. Black Cloud, Barometer (checked 3 December 2026)
  12. Black Cloud, Salesforce admin cover (checked 3 December 2026)

Questions

Common questions.

How many fields can I track with field history tracking?

Up to 20 fields per object, standard or custom. Tasks and events allow 6 fields each. Salesforce Support cannot raise the limit: you buy Field Audit Trail or an add-on product through your Salesforce account executive.

Why does a new record’s history not show the values entered when it was created?

Because Salesforce logs only the creation event, with the user and the time, when a record is created. Values entered in that first save are not treated as changes. Values written by automation such as Apex or a flow during creation are included in the creation entry.

Why can’t a user see field history on a record?

Usually because the History related list is not on that user’s page layout, or the user cannot see the field. Salesforce’s object reference says the case and opportunity history objects respect field-level security on the parent object, so history for a hidden field stays hidden.

Can I track changes to a formula field?

No. Salesforce does not track formula, roll-up summary or auto-number fields, or Created By and Last Modified By. Our advice, to keep a record of a calculated value, is to copy it into an ordinary field and track that field instead.

Do I need to track Opportunity Stage and Amount?

Not for stage reporting, in our view. Salesforce’s OpportunityHistory object records changes to Amount, Probability, Stage and Close Date on its own. Track other opportunity fields, such as Owner, with field history tracking.

Related

Next step · Salesforce admin cover

A Salesforce admin, by the month.

Our monthly packages cover the day-to-day running of your org, whether you have no admin or one who needs backup.