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

Maximum # of Fields in an Object

I know this is in the doco somewhere, but I have been unable to find it.


What is the maximum # of fields in an object, and what is the maximum # of formula fields in an object?


Do formula fields use data storage space, or are they calculated when a record is retrieved?

Best Answer chosen by Admin (Salesforce Developers) 

500 is the max # of custom fields you can add to an object, and formula fields count towards that limit, but formula fields do not consume any data storage space.


I don't know of any limit on the # of formula fields beyond the overall custom field limit of 500, but it's possible that there is such a limit on the # of formula fields and I have just never hit it.