Sub topic 9
Record Page Regions and Related Information
This chapter assumes you can open a record from a list view or search, and that you know the terms object, record, and field. It covers the parts of a record page, how to use them, and the mistakes people commonly make. The goal is to read any record page quickly, whatever the object.
The layout of a record page
A record page is the page Lightning Experience shows for a single record, such as one Account or one Contact. Its address follows the pattern /lightning/r/<Object>/<RecordId>/view. An administrator builds the layout with the Lightning App Builder. A page is made of regions, and each region holds components. The standard regions are:
- The highlights panel at the top.
- The path (on objects that have one), directly under the highlights panel.
- The main column, with tabs such as Details and Related, plus the activity area.
- The right sidebar, which often holds related records or other components.
Different apps and profiles can show different layouts for the same object. If a colleague describes a component you cannot see, the page assignment is the first thing to check. It is usually not a bug.
The highlights panel
The highlights panel is a compact header that shows the record's name, its object icon, and a few key fields. Which fields appear is set by a compact layout. The same compact layout also controls the fields in the Salesforce mobile app and in hover previews. That means a field missing from the panel is fixed in the compact layout, not on the page.
The panel also holds the action buttons, such as Edit, Delete, and Follow, and a drop-down menu for additional actions. Actions come from the page layout or from the Lightning page. The set you see depends on your permissions. If you cannot see Delete, your profile or permission set probably does not grant it.
The path
The path is a row of stages across the page. It appears on objects where an administrator has set it up, such as Opportunities (Stage) or Leads (Status). The path is a visual picklist. Clicking a stage and choosing Mark Status as Complete (or Mark as Current Stage) updates the field for that record. A path can also show key fields and guidance for the selected stage, which helps a team collect the right data at each step.
The Details tab
The Details tab shows the record's fields, grouped into sections defined by the page layout. Several behaviors are worth knowing:
- Hover over a field to see a pencil icon. Clicking it makes that field editable inline, and you save it with the Save button at the bottom of the page.
- A lock icon means you cannot edit the field. Causes include field-level security, a read-only layout setting, or a formula field.
- Required fields have a red marker. A save fails until they have values.
- Lookup fields show a link. Clicking it opens the related record.
- Sections can collapse. Collapsed sections still hold data, so check them before assuming a field is empty.
Inline editing saves several fields in one operation, but validation rules still run. A validation error appears at the top of the page or next to the field, and nothing is saved until you fix it.
The Related tab and related lists
A related list shows child records that point to the current record. On an Account, the Contacts, Opportunities, and Cases lists are examples. Each one is a small list view of records whose lookup or master-detail field points to the Account.
Related lists appear in two forms:
- Related List - Single or the standard Related tab shows each list as a card with a few rows and a View All link.
- Related List Quick Links appears near the top of the page and jumps to a list, so you can reach one without scrolling.
View All opens a full-page list of the child records with sortable columns. Its URL has this shape:
/lightning/r/Account/001XXXXXXXXXXXXXXX/related/Contacts/viewHere Contacts is the relationship name, not the object name. This matters when you build links by hand, because custom relationships often end in __r.
Cards show only a few rows. If a count shows 6+, the card is showing a partial set. Open View All to see everything.
Related lists compared with list views
| Feature | List view | Related list |
|---|---|---|
| Scope | All records you can see for one object | Child records of one parent record |
| Filter control | Filters panel and saved views | Fixed by the relationship, plus a sort order |
| Display modes | Table, Kanban, split view | Table only |
| Created by | Users or administrators | Page layout or Lightning page |
| Inline edit | Yes, for editable fields | Yes, in the full View All page |
The Activity tab and timeline
Activity records the work done around the record. Two kinds of items matter:
- Tasks are to-do items with a due date.
- Events are calendar entries with a start and end time.
The activity composer has actions such as Log a Call, New Task, New Event, and Email. The timeline lists items under Upcoming & Overdue and Past Activities. Filters let you limit the timeline by type and date range. You can expand an item to read the details or complete it with a checkbox.
If you use Activity on a Contact, Lead, or Account, remember that the timeline can include activity from related records. For example, an Account timeline can include activity logged on its Contacts and Opportunities. This is controlled by relationships and by the setting that shows related activity, and it explains why you sometimes see items you did not log on that record.
Chatter and the right sidebar
Chatter is Salesforce's social feed. On many pages it shows as a tab or as a component in the main column. Posts and comments attach to the record and notify followers. The Follow button in the highlights panel subscribes you to feed updates for that record.
The right sidebar holds components the administrator chose. Common ones are Related Record components, a Report Chart, Einstein or Pipeline components in some orgs, and the Related List Quick Links. Because all of these are optional, a sidebar on one object may look nothing like the sidebar on another.
Common errors and how to fix them
- A related list is missing. The list may not be on the page layout or the Lightning page. An administrator adds it in the page layout (for the layout-based list) or in the App Builder. Also check object permissions, because you need Read access to the child object.
- A field is blank but you expect a value. The field might not be on the layout, might be hidden by field-level security, or might sit in a collapsed section.
- An edit is rejected. Read the message. A validation rule, a required field, or a trigger usually causes it. The message names the field when the problem is a field value.
- The Related tab shows
(0)for a list that should have data. The record you are viewing may be the wrong one, such as a duplicate Account. Check the name and record Id in the address bar. - A page looks different from a teammate's. Page assignments vary by app, record type, and profile. Compare those three settings.
Reading regions from a URL and from code
A record page URL tells you the object and the record, as the earlier chapter on URLs showed. A tab selection, however, does not appear in the path. For this reason a link to a record always opens the page on its default tab. A related list full page is a separate address, and you can open it programmatically.
import { LightningElement, api } from 'lwc';
import { NavigationMixin } from 'lightning/navigation';
export default class OpenRelatedContacts extends NavigationMixin(LightningElement) {
@api recordId;
openContacts() {
this[NavigationMixin.Navigate]({
type: 'standard__recordRelationshipPage',
attributes: {
recordId: this.recordId,
objectApiName: 'Account',
relationshipApiName: 'Contacts',
actionName: 'view'
}
});
}
}The page reference type standard__recordRelationshipPage opens the View All page for one related list. The value of relationshipApiName is the relationship name, the same value that appears in the URL above.
Working habits
- Start at the highlights panel to confirm you have the right record.
- Read the path to see where the record stands.
- Use Details for the data and Related for the children.
- Use Activity to see what was done and what is due.
- Use View All whenever a count ends with a plus sign.
Exercise
A user opens an Account and sees a Contacts card showing "Contacts (6+)". They count six rows and conclude that the Account has exactly six Contacts. What is wrong with this conclusion, and what should they do next?
Show answer
The plus sign means the card shows only a partial set, so the Account may have more than six Contacts. They should click View All, which opens the full related list page for the Contacts relationship, and count the rows there.
Exercise
A field on the Details tab shows a lock icon instead of a pencil when you hover over it. Name two possible causes.
Show answer
Any two of these: field-level security makes the field read-only for the user's profile or permission set, the page layout marks the field as read-only, or the field is a formula or another calculated type that cannot be edited.
Exercise
Which page reference type opens the View All page of the Opportunities related list for an Account from a Lightning Web Component, and which attribute names the list?
Show answer
Use type standard__recordRelationshipPage. The attribute relationshipApiName names the list, for example Opportunities.