Sub topic 1
What Lightning Experience is and how it is organized
Lightning Experience is the current Salesforce user interface. It runs in a browser and replaces the older Salesforce Classic interface. This chapter gives you the working model of how Lightning Experience is organized. Later chapters cover each piece in detail: apps, the navigation bar, tabs, list views, records, search, and URLs.
Prerequisites
This chapter assumes you have the following:
- Basic familiarity with Salesforce terms such as object, record, and field.
- A Salesforce org or Developer Edition account with a user who can view standard objects like Accounts and Contacts.
- Comfort using a web browser and its address bar.
You do not need to write code to follow the chapter. A short developer note near the end shows how the same destinations can be reached from a Lightning Web Component.
What you will learn
By the end of this chapter you should be able to:
- Name the main layers of Lightning Experience and say how they relate.
- Explain the difference between an app, a tab, a list view, and a record page.
- Recognize where your current position in the interface comes from.
- Read a basic Lightning URL and connect it to the screen it opens.
The big picture
Lightning Experience is organized as a set of nested layers. Each layer narrows your focus.
- An app is a collection of navigation items chosen for a job, such as sales or service.
- The navigation bar is the strip across the top of the app. It shows the items that belong to the current app.
- A navigation item is an entry in that bar. It usually opens an object, such as Accounts, but it can also open a dashboard, a report, or a custom page.
- An object's home page (reached through its tab) shows records of that object, usually as a list view.
- A list view is a filtered, sorted set of records from one object.
- A record page shows one record in detail.
Search sits beside this hierarchy. Global search lets you jump to any record or object you can access, without walking through the layers.
The path from app to record is the usual one. Search is the shortcut.
Apps
An app groups the objects and tools a team needs. A sales app might include Accounts, Contacts, Opportunities, and Reports. A service app might include Cases and Knowledge. The same object can appear in several apps.
Two points matter early:
- The app you are in decides which items appear in the navigation bar. It does not decide which data you can see. Record access comes from your profile, permission sets, sharing rules, and similar settings, not from the app.
- An object missing from the bar is not necessarily unavailable. It may simply not be part of the current app. You can switch apps, or look for the object in the App Launcher, to find it.
The App Launcher is the grid icon at the top left. It lists the apps you can use and, separately, the items you can open. Chapter 2 covers it fully.
The navigation bar and tabs
The navigation bar sits under the global header. It shows the name of the current app, followed by its navigation items.
Most navigation items for objects are tabs. A tab is the entry point to an object. Selecting the Accounts tab opens the object home page for Accounts. In Lightning Experience this page is usually a list view with a header, a set of controls, and a table of records.
In Lightning Experience the word "tab" has two meanings, and it helps to keep them apart:
| Meaning | What it is | Example |
|---|---|---|
| Navigation item tab | An entry in the navigation bar that leads to an object or page | The Accounts item in the bar |
| Workspace tab | A browser-style tab inside a console app that holds an open record | An Account record open beside a Case |
Workspace tabs only appear in console apps. A standard app shows one main page at a time. Console navigation is covered in a later chapter.
List views
A list view is a saved set of filter, sort, and column choices applied to one object. Salesforce provides standard list views, such as Recent or All Accounts, and users can create their own.
Filters and sorting in a list view behave like the clauses of a database query. Take a list view on Accounts that filters by Industry and sorts by Name. It returns the same rows as this SOQL query:
SELECT Id, Name, Industry
FROM Account
WHERE Industry = 'Technology'
ORDER BY NameThe mapping is direct:
- The list view's filters correspond to the
WHEREclause. - The list view's sort corresponds to
ORDER BY. - The list view's visible columns correspond to the fields in
SELECT.
SOQL is the Salesforce Object Query Language. You do not need it to use list views. It is shown here because it gives you a precise picture of what a list view does.
Note one more detail. A list view also has a visibility setting. A view can be private to you, shared with specific groups, or shared with everyone. A record that matches the filters still only appears if you have access to it.
Record pages
Selecting a record name in a list view opens its record page. A record page shows one record and its related information. Its main regions are:
- The highlights panel at the top. It shows the record name and a few key fields, plus action buttons.
- The details area, which shows the record's fields.
- The related area, which lists child records, such as the Contacts under an Account.
- The activity area, which shows a timeline of tasks, events, and emails.
Administrators can change which components appear and where. Two users can see different layouts for the same record because of page assignment by app, profile, or record type. The structure above is a common default, not a fixed rule.
How the pieces tie together
Each layer answers a different question.
| Layer | Question it answers | Controlled by |
|---|---|---|
| App | Which set of tools am I using? | Admin setup, your user's app assignment |
| Navigation bar | Which items are one click away? | The app's configuration, plus your own personalization |
| Tab | Which object do I want? | The app's items |
| List view | Which records of that object? | Filters, sort, visibility |
| Record page | What are the details of one record? | Page layout and Lightning page assignment |
| Global search | Where is this thing, wherever it lives? | Your record access |
When you cannot find something, work down the table. Check the app first, then the navigation item, then the list view filter, and last your access to the record.
Reading a Lightning URL
Every page in Lightning Experience has a URL that follows a pattern. Reading the pattern tells you where you are.
/lightning/o/Account/list?filterName=Recent
/lightning/r/Account/001XXXXXXXXXXXXXXX/viewThe first URL opens the Account list view named Recent. The second opens the view page of a single Account record, where 001XXXXXXXXXXXXXXX stands for a real record Id.
The parts are:
/lightning/marks the Lightning Experience interface.omeans an object page.rmeans a record page.Accountis the object API name.listorviewis the action.filterNameis a query parameter that selects the list view.
Record Ids for Accounts start with 001. That prefix identifies the object type, so you can often recognize a record's object from its Id alone.
Lightning URLs are useful for bookmarks and for sharing a link to a record. They are also the target of programmatic navigation, described next. A later chapter covers URL patterns in more detail.
A developer note: navigating from code
A Lightning Web Component can open the same destinations by using NavigationMixin. You pass a page reference that describes the destination, instead of building a URL string. This component opens the Account Recent list view and a specific Account record page:
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: recordId,
objectApiName: 'Account',
actionName: 'view'
}
});
}
}Compare the page references with the URLs above. standard__objectPage with actionName: 'list' matches /lightning/o/Account/list. The state property carries filterName=Recent. standard__recordPage with actionName: 'view' matches /lightning/r/Account/<Id>/view. Page references are preferred over hand-built URLs because Salesforce can change URL formats without changing the page reference contract.
Common errors and misunderstandings
- Assuming the app controls data access. The app only controls which navigation items you see. If you cannot see a record, check sharing and permissions.
- Assuming a missing object is deleted or hidden. It is often just absent from the current app. Use the App Launcher or global search.
- Blaming the data when a list is empty. A list view with a restrictive filter can return no rows even when matching records exist. Switch to a broader view, such as All Accounts, to check.
- Confusing the two kinds of tab. Navigation item tabs belong to every app. Workspace tabs belong to console apps only.
- Treating the record page layout as universal. The same record can look different for different users, apps, or record types.
Exercises
Exercise
A user says the Cases object has disappeared. Other users can still open Cases. Name two likely causes that relate to the structure described in this chapter, and where you would check each.
Show answer
First, the user may be in an app whose navigation bar does not include Cases. Check the current app, then open the App Launcher and look for Cases or switch apps. Second, the user may lack access to the object or its records. Check the user's profile and permission sets for object access, and sharing settings for record access. The app controls navigation only, so a missing item is not proof of missing access.
Exercise
Read this URL and say what it opens: /lightning/o/Contact/list?filterName=Recent. Then write the page reference object that a Lightning Web Component would pass to NavigationMixin to open the same page.
Show answer
It opens the object home page of Contacts, showing the list view named Recent. The page reference is: { type: 'standard__objectPage', attributes: { objectApiName: 'Contact', actionName: 'list' }, state: { filterName: 'Recent' } }.
Exercise
A list view shows filter Industry equals Technology and sort by Name. Write the equivalent SOQL query for the fields Id, Name, and Industry, and explain what happens to an Account in the Technology industry that the user cannot access.
Show answer
SELECT Id, Name, Industry FROM Account WHERE Industry = 'Technology' ORDER BY Name. The inaccessible Account does not appear in the list view. Filters narrow the set, but record access still applies, so the user sees only the matching records they are allowed to view.