Entity Names
Objects, such as account and opportunity, or data types, such as Lookup and
Text Area, receive no special formatting. They follow different capitalization guidelines
depending on their context:
- User Interface Text: In UI text, most object names are referenced from hard-coded labels that are capitalized. In this case, use the capitalization found in the user interface. For example: Select Text Area (Long) and click Next.
-
Code: When referring to a code context such as in the API or Apex, use the capitalization
found in the code itself. The names of objects and data types are capitalized in Apex documents, but are lowercase
in API documents to reflect the
actual values in the Apex code
or the API WSDL (Web Services
Description Language), respectively. For example: (API) Every custom field has a
boolean data type. (Apex) Ensure that the Boolean condition remains true.
In most cases, it’s not important to the general user whether you’re referring to the object or record (instance). Use your best judgment and clarify when necessary.