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
KitiKiti 

Underlying representation of text field (varchar or char(n))

In designing an SF Object and deciding on a practical length for a text field - I would like to understand the associated representation in Salesforce's underlying database.  

 

Can someone shed light ( and preferably direct me to the correct document ) on whether I'm specifying the length on a fixed length field or a varchar?

 

Thanks,

 

Raf

Bhaswanthnaga vivek vutukuriBhaswanthnaga vivek vutukuri

Hi Kiti, Salesforce text field allows users to enter any combination of letters, numbers, or symbols. You can set a maximum length, up to 255 characters so its a varchar :)

https://help.salesforce.com/apex/HTViewHelpDoc?id=custom_field_types.htm&language=en