What is Custom Field in Salesforce?
Updated · By the Clientell AI team · How we write
A custom field is one of the Salesforce custom fields you add to an object to store data that the standard fields do not cover. You choose the data type, such as text, number, date, picklist, formula or lookup. The API name ends in __c. How many you can create per object depends on your Salesforce edition.
Key facts
- What it is
- A field you create on a standard or custom object to store your own data
- API name suffix
- __c (for example Contract_Value__c)
- Permission to create
- Customize Application
- Limit, Enterprise
- 500 custom fields per object, plus 400 more from certified managed packages (Salesforce Help)
- Limit, Unlimited
- 800 custom fields per object, plus 100 more from certified managed packages (Salesforce Help)
- Hard cap
- 900 custom fields on the listed objects (Account, Contact, Opportunity, Lead, Case and more) (Salesforce Help)
Clientell AI, the AI Salesforce admin, documents how Custom Field is used in your org in a read-only scan, and flags anything risky or unused. See org documentation
Try it in Clientell AI
“Document how Custom Field is used in my org and list anything that looks risky or unused.”
Clientell AI reads your org first. Platform deployments include rollback. How security works.
What is a custom field in Salesforce?
A custom field is a field that you or an app adds to an object. Standard fields come with Salesforce, such as Account Name. Custom fields hold what is special to your business, such as a contract tier or a renewal date.
You can use custom fields to capture extra information, make a field required, set default values, track changes, and control who sees the field with field-level security (Salesforce Help). You can also make formula fields that calculate values from other fields. See field-level security and custom objects.
What are the Salesforce custom field types?
You pick the type when you create the field. Some choices are hard to change later, so choose with care (Salesforce Help).
| Type | Use it for |
|---|---|
| Text, Text Area, Long Text Area | Names, notes and free text |
| Number, Currency, Percent | Amounts and rates. You set the decimal places. |
| Date, Date/Time | Dates, picked from a calendar |
| Checkbox | True or false |
| Picklist, Multi-Select Picklist | A fixed list of choices |
| Formula | A value that Salesforce calculates from other fields |
| Lookup, Master-Detail | A link to another record |
| Roll-Up Summary | A count or total of child records, on the master side of a master-detail relationship |
| Geolocation | A latitude and longitude. It counts as three custom fields toward your limit (Salesforce Help). |
How do you create a custom field?
You need the Customize Application permission. Test in a sandbox first when automation, reports or integrations use the field. Example: add Account.Contract_Tier__c as a picklist.
- Setup > Object Manager > Account > Fields & Relationships > New.
- Choose Picklist as the data type and click Next.
- Enter the label Contract Tier and the values Bronze, Silver and Gold. The API name fills in as Contract_Tier__c.
- Set field-level security, which controls which profiles and permission sets can see or edit the field.
- Choose the page layouts the field appears on, then save.
- Result: Contract Tier shows on the Account page and is available in reports, list views and SOQL as Account.Contract_Tier__c.
How many custom fields can an object have?
Each edition has a maximum number of custom fields per object. Salesforce lets you install more from AppExchange certified managed packages. The table shows what you can create yourself (Salesforce Help).
| Edition | Custom fields per object |
|---|---|
| Personal | 5 (Salesforce Help) |
| Contact Manager | 25 (Salesforce Help) |
| Group, Essentials, Professional | 100 (Salesforce Help) |
| Enterprise and Developer | 500 (Salesforce Help) |
| Unlimited and Performance | 800 (Salesforce Help) |
What counts toward the limit?
Some objects have a hard limit of 900 custom fields, including Account, Asset, Campaign, Case, Contact, Contract, Lead, Opportunity, Order, Product2, custom objects and Users. All other objects have a hard limit of 800 (Salesforce Help).
Some fields count for more than one. Each geolocation field counts as three. An object can have no more than 40 custom relationships and 25 roll-up summary fields (Salesforce Help). Support can raise some limits, for example roll-ups up to 40 (Salesforce Help). Near the cap, delete and erase fields you no longer need.
What are common custom field mistakes?
Most field problems start with a rushed type or name. Each has a fix.
- Picking the wrong type. Fix: plan the type first, since some changes are blocked when other things depend on the field.
- Creating fields nobody uses. Fix: review field usage and remove unused ones before you reach the limit (Salesforce Help).
- Skipping a description. Fix: write one for every field so the next admin knows why it exists.
- Leaving field-level security wide open. Fix: grant access through permission sets.
- Building a count by hand. Fix: use a roll-up summary field when the relationship is master-detail (Salesforce Help).
FAQ: Custom Field in Salesforce
What is a custom field in Salesforce?
A field you add to a standard or custom object to store your own data, with a data type you choose. Its API name ends in __c.
What are the Salesforce custom field types?
Text, number, currency, percent, date, date/time, checkbox, picklist, multi-select picklist, formula, lookup, master-detail, roll-up summary, geolocation, and more.
How many custom fields can I have per object?
Enterprise and Developer allow 500. Unlimited and Performance allow 800. Professional, Group and Essentials allow 100 (Salesforce Help).
Who can create custom fields?
A user with the Customize Application permission, usually a system administrator.
What does __c mean in Salesforce?
It marks a custom field or custom object API name. The label can change, but the API name ends in __c.
How does a geolocation field count toward the limit?
Each geolocation field counts as three custom fields: one for latitude, one for longitude and one for internal use (Salesforce Help).
Sources: Salesforce Help: Custom Fields Allowed Per Object, Salesforce Help: Increase the Number of Custom Fields, Salesforce Help: Custom Field Types, Salesforce Help: Customize Fields, Salesforce Help: Roll-Up Summary Field. Last reviewed .
Related Salesforce Terms
3 termsCustom Object
DataA Custom Object is a user-defined database table in Salesforce that stores data specific to your organization's unique business needs.
Field-Level Security (FLS)
SecurityFLS (Field-Level Security) controls which users can see or edit each field, set per profile or permission set. A field with no access is hidden everywhere: layouts, reports, list views and API responses.
Roll-Up Summary Field
DataA Roll-Up Summary Field aggregates values (COUNT, SUM, MIN, MAX) from child records in a master-detail relationship and displays the result on the parent record.
What should I read next?
More in Data
View all →Data Loader
Data Loader is a Salesforce desktop application for bulk importing, exporting, updating, deleting, and upserting large volumes of records.
Data Import Wizard
The Data Import Wizard is a browser tool in Salesforce Setup that imports up to 50,000 records from a CSV into standard and custom objects. It can insert, update or upsert, but it cannot delete or export.
Custom Object
A Custom Object is a user-defined database table in Salesforce that stores data specific to your organization's unique business needs.
Validation Rule
A Validation Rule is a formula-based check in Salesforce that prevents users from saving a record if the data does not meet specified criteria.
Try this on your own org
Start the 14-day free trial, no card. Clientell AI asks before it changes anything in production.
14-day free trial · No credit card required