Skip to main content

SF-0024 · Concept · Easy

What are the different fields or data types available in Salesforce?

✓ Verified by Vikas Singhal · Last reviewed 5/17/2026

Salesforce ships around 25 field data types you can pick when creating a custom field. They group into text/number/date primitives, special CRM types (Email, Phone, URL), relationship fields, derived fields (Formula, Roll-Up Summary), and a few specialized types (Geolocation, Time, External Lookup).

Primitive / scalar field types

TypePurposeNotes
TextSingle-line stringUp to 255 characters; can be marked Unique and External ID
Text AreaMulti-line stringUp to 255 characters; basic textarea
Text Area (Long)Long multi-lineUp to 131,072 characters (default 32,768); not searchable in old UI without indexing
Text Area (Rich)HTML/rich contentInline images, formatting; counts toward storage
Text (Encrypted)Masked classic encryptionDifferent from Shield Platform Encryption; limited search
NumberInteger or decimalUp to 18 digits total
CurrencyMonetary amountRespects multi-currency org settings
PercentPercentageStored as the number, display includes %
DateDate onlyNo time component
Date/TimeDate and timeStored in UTC, displayed in user’s TZ
TimeTime only (no date)Newer field type; supports business hours scenarios
CheckboxBooleanTrue/false
EmailEmail addressValidates format; supports mailto links
PhonePhone numberClick-to-call enabled
URLWeb addressRenders as hyperlink

Picklist family

TypePurpose
PicklistSingle-value dropdown
Picklist (Multi-Select)Multi-value dropdown — stored as semicolon-separated string
Global PicklistReusable picklist value set shared across multiple fields

Picklists can have dependencies — a controlling picklist filters values in a dependent picklist (e.g., Country → State).

Relationship fields

TypePurpose
LookupLoose link to another object’s record
Master-DetailTight parent-child link (cascade delete, roll-ups)
HierarchicalOnly available on the User object — self-relationship
External LookupLookup from any object to an external object
Indirect LookupLookup from external object to standard/custom Salesforce object (matched on External ID)

Derived fields

TypePurpose
FormulaRead-only computed value (Number, Text, Date, Date/Time, Currency, Percent, Checkbox) — recalculated on every read
Roll-Up SummaryAggregate (COUNT, SUM, MIN, MAX) over master-detail child records — stored value, recalculated on write
Auto NumberSystem-generated sequence (e.g., INV-{0000}) — set once at insert

Specialized types

TypePurpose
GeolocationLatitude/longitude pair — supports DISTANCE() in formulas/SOQL
FileAttached files (used in Lightning vs old Attachment)

Standard system fields (always present)

Every object also has built-in system fields: Id, Name (or auto-number), CreatedDate, CreatedById, LastModifiedDate, LastModifiedById, SystemModstamp, IsDeleted, OwnerId (on most objects). You can’t delete these.

Choosing the right type

  • For integration keys → Text with External ID and Unique
  • For categorization with few stable values → Picklist (not Text) so reports/filters work
  • For computed totals → Roll-Up Summary (master-detail) or Formula
  • For money → Currency, not Number
  • For flags → Checkbox, not Picklist (Yes/No)
  • For status sequences → Picklist, not Text — enables reports, validation, path UI

Once a field is created, you can sometimes convert types (Text → Picklist, Text → Email) but with restrictions — plan up front.

Verified against: Salesforce Help — Custom Field Types. Last reviewed 2026-05-17.