What is the difference between trackHistory and trackFeedHistory?

If we look at the XML for a specific Object and inspect a random field, there is both trackHistory and trackFeedHistory


Which one is for field history tracking? Or both? What is the relation between the two?


Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

Will track changes to the Object in the Chatter Feed for that object. This is called Feed Tracked Changes.

  • These Feed Items are system generated and refered to as FTCs
  • FTCs older than 45 days are cleaned up automatically by the system.
  • Follow the FLS rules (you will only see changes to Fields you have access to)
  • It is customizable in the Setup UI for which fields / objects you are tracking.
  • You can only track 20 fields per object type (such as an Account or Order).

More Information: https://help.salesforce.com/articleView?id=collab_feed_tracking_overview.htm

You can select certain fields to track and display the field history in the History related list of an object. The field history data is retained for up to 18 months.

You can enable field history tracking for standard objects in the object’s management settings.

When you enable tracking for an object, customize your page layouts to include the object’s history related list.

More Information: https://help.salesforce.com/articleView?id=tracking_field_history.htm

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Notify of

Inline Feedbacks
View all comments
Would love your thoughts, please comment.x