Sub topic 8
Working in Object Manager
This chapter assumes you can open Setup from the gear icon and use Quick Find. You should also know what objects, fields, and page layouts are. You need a Salesforce org login, such as a Developer Edition org or a sandbox.
What Object Manager is
Object Manager is the part of Setup where you configure objects. An object is a table of records, such as Account or Contact. Standard objects ship with Salesforce. Custom objects are ones you create, and their API names end in __c.
Setup Home and the Setup menu organize settings by feature. Object Manager organizes them by object. If your task starts with "I need to change something on Account," start here.
You can reach it in two ways:
- Click the Object Manager tab at the top of Setup.
- Type
Object Managerinto Quick Find.
You can also open it directly with this path appended to your org's domain:
/lightning/setup/ObjectManager/homeFinding an object
The Object Manager list shows each object's label, API name, type, description, and last modified date. Use the Quick Find box above the list to filter by label or API name.
Pay attention to the API Name column. Formulas, Apex, and the CLI use the API name, not the label. A custom object labeled "Invoice" might have the API name Invoice__c. Managed package objects carry a namespace prefix, such as ns__Invoice__c.
Inside an object
Click an object to open its detail page. The left sidebar lists the areas you will use most.
| Sidebar item | What you do there |
|---|---|
| Details | See the API name, plural label, and object settings. |
| Fields & Relationships | Create and edit fields, and see lookup and master-detail links. |
| Page Layouts | Control which fields and related lists appear on a record page. |
| Lightning Record Pages | Build the Lightning page that displays records of this object. |
| Buttons, Links, and Actions | Add or edit actions on the record. |
| Compact Layouts | Choose the key fields shown in the highlights panel and on mobile. |
| Record Types | Offer different picklist values and layouts to different users. |
| Validation Rules | Block saves that break a business rule. |
| Triggers | View Apex triggers on the object. |
The exact items you see depend on the object type and your permissions. Not every standard object has every item.
Worked example: add a field to Account
Suppose you need to add a field to Account and show it on the record page.
- Open Object Manager and type
Accountin the filter box. - Click Account, then Fields & Relationships.
- Click New and choose a data type, such as Text.
- Enter a label. Salesforce fills in the API name and appends
__c. - Set field-level security so the right profiles can see the field.
- Choose which page layouts include the field, then save.
This direct path opens the Account field list, so you can skip steps 1 and 2 next time:
/lightning/setup/ObjectManager/Account/FieldsAndRelationships/viewCommon errors
- The object is missing from the list. Your user may lack permission to customize the application. Check this in the permissions chapter. A managed package object may also be hidden or not installed.
- A new field does not appear on the record. Adding a field does not place it on a layout in every case. Check the page layout and the Lightning record page, and confirm field-level security allows the user to see it.
- You edited the wrong layout. Objects can have several layouts. Check which one is assigned to the user's profile and record type.
- You searched by label but the code uses the API name. Match them in the API Name column.
Exercise
You are told "the Region field is missing from Account records." Name the Object Manager pages you would check, and in what order.
Show answer
First open Account, then Fields & Relationships, to confirm the field exists and check its field-level security. Next open Page Layouts to confirm the field is on the layout assigned to the user's profile and record type. Finally open Lightning Record Pages to check that the record page does not hide the field through its components or visibility filters.