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
Basha sk 16Basha sk 16 


Hi All,

I'm very new to salesforce could anyone help on this

please find the below link and i executed the code correctly but i'm confucing how to check whether the fields are tracked morethan limit of 20 and where we check.

Thanks In Advance,
SandhyaSandhya (Salesforce Developers) 
Hi Basha sk,

You can track up to 20 standard and custom fields per custom object.
To track field history for custom objects:
1.From Setup, click Create | Objects.

2.Click Edit next to the name of the custom object.

3.Select the Track Field History checkbox.

4.Click Save.

5.Click Set History Tracking in the Custom Fields & Relationships section. This section allows you to set a custom object’s history for both standard and custom fields.

6.Choose the fields you want to be tracked. You can select up to 20 standard and custom fields per object. You can’t track: Formula, roll-up summary, or auto-number fields Created By and Last Modified By

7.Click Save.Salesforce tracks history from this date and time forward. Changes made before this date and time are not included.

For standard objects please refer below link.
Hope this helps you!

Please mark it as Best Answer if my reply was helpful. It will make it available for other as the proper solution.
Thanks and Regards