Sub topic 3
Record Page Regions and Related Information
Assume you know Salesforce objects, records, and fields, and can open an Account in a Salesforce org.
Record page regions and related information
A Lightning record page usually combines these regions:
- Highlights panel: Key fields and record actions, such as Edit or New Contact.
- Details: The record’s fields, grouped into sections.
- Related: Related lists, such as Contacts, Opportunities, and Cases.
- Activity: Tasks, events, emails, and notes connected to the record.
Use Related when the information belongs to another record. For example, an Account’s Contacts are separate Contact records linked to that Account.
Global search, recent items, and favorites
Use global search to find records across objects. Search results depend on your permissions and the objects enabled for search. Recent items are records and pages you opened recently. Favorites are saved links that you can reach from the star icon.
Search is useful when you know a name or value. Favorites are better for destinations you use repeatedly, such as a specific list view.
Personalizing app navigation
The navigation bar shows items for the current app. Select the App Launcher to switch apps or find objects that are not in the current navigation bar. Depending on your permissions, you may also add, remove, or reorder navigation items with the navigation-bar menu.
Console navigation and workspace tabs
A console app keeps work in workspace tabs. Opening a record often creates a tab under a main navigation item. Related records can open as subtabs, so you can move among them without losing the original workspace.
Reading Lightning URLs
Common URL patterns identify the destination:
/lightning/o/Account/list?filterName=Recent
/lightning/r/Account/001XXXXXXXXXXXXXXX/viewThe first opens the Recent Account list view. The second opens one Account record. Replace the placeholder with a real record ID.
Navigating from a Lightning Web Component
A Lightning Web Component can use NavigationMixin instead of constructing URLs manually:
import { LightningElement } from 'lwc';
import { NavigationMixin } from 'lightning/navigation';
export default class AccountNavigator extends NavigationMixin(LightningElement) {
openRecentAccounts() {
this[NavigationMixin.Navigate]({
type: 'standard__objectPage',
attributes: {
objectApiName: 'Account',
actionName: 'list'
},
state: { filterName: 'Recent' }
});
}
openAccount(recordId) {
this[NavigationMixin.Navigate]({
type: 'standard__recordPage',
attributes: {
recordId,
objectApiName: 'Account',
actionName: 'view'
}
});
}
}Exercise
Which region should you open to see Contacts related to an Account?
Show answer
Open the Related region and select the Contacts related list.