function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Determine which fields are history tracked


To be able to create some specific functionality on history tracking, I need to find out which fields of an object have been indicated for history tracking.


In the documentation (DescribeFieldResult) I didn't find any method for this. But I hope anyone might have figured out a way to determine this...


Thanks, Marcel.

Sridhar BonagiriSridhar Bonagiri



If you have enabled the history tracking for a custom object SFDC automatically creates a new custom object with the same name and adds '__History' suffix.



Sridhar Bonagiri

If this post is your solution, kindly mark this as the solution and give Kudos.


Thanks, Sridhar.

But what I need is to know which fields of this object are being tracked. You can select up to 20 fields of your object which are tracked and stored in the __History object.

But I want to find out within my Apex code which of the fields (eg. street, town, phonenumber) have been indicated for tracking.