Sub topic 11
Personalizing Your App Navigation
This chapter assumes you already know what a Lightning app, the navigation bar, and a tab are. It also assumes you can open a list view and a record page. Here you will learn how a user changes the navigation bar for their own use, what that change does and does not affect, and how to fix the usual problems.
What personalization is
Personalization is a per-user, per-app change to the navigation bar. An admin builds the app and decides which items it contains by default. Each user can then adjust how those items appear for them in that app.
Personalization changes only your own view. Other users, and the app definition itself, stay the same. If you personalize the Sales app, your Service app is not affected, because each app keeps its own personalized settings.
Personalization is not the same as app configuration:
| Aspect | App configuration (admin) | Personalization (user) |
|---|---|---|
| Who does it | Admin, in App Manager | Any user with access to the app |
| Scope | Everyone assigned the app | One user, one app |
| Can add items from | Any object or item the admin chooses | Items the user can already access |
| Can remove items | Yes, for everyone | Only from the user's own bar |
| Reset | Edit the app | Reset the navigation bar to its defaults |
What you can change
In the navigation bar, open the pencil icon at the end of the bar, which is labeled Edit in the tooltip. This opens the Edit Navigation Items dialog. From there you can:
- Add items. Use Add More Items, search for an object, a list, a dashboard, or another item, select it, and choose Add.
- Rename an item. Each item has a menu where you can change its label. The new label shows only to you.
- Reorder items. Drag an item up or down in the list.
- Remove items. Items you added can be removed. Items the admin marked as required for the app cannot be removed.
- Reset. The Reset Navigation Items option on this dialog returns the bar to the admin's defaults.
Select Save to apply the changes. They take effect right away and persist across sessions and devices, because they are stored with your user, not in your browser.
Adding a specific list view
A tab by default opens the object home page, which shows your most recently used list view. You can add a particular list view as its own item. For example, you can add the Account list view Technology Accounts so that one click opens exactly that list.
This works well with the list views you created earlier. A saved filter such as the one below can become a permanent shortcut:
SELECT Id, Name, Industry
FROM Account
WHERE Industry = 'Technology'
ORDER BY NameAdding a list view item does not create a new tab. It adds a navigation item that points to the existing object and list view.
Pinning and the last viewed list
The way an item opens depends on its type. An object item opens the object home page and shows the list view you used last. A list view item always opens that list view. Choose the type that matches how you work. If you jump between several views of Accounts, use the object item. If you always want one list, add that list.
Items you can add
| Item type | What it opens | Typical use |
|---|---|---|
| Object | Object home page | Daily work with Accounts, Contacts, Opportunities |
| List view | A specific filtered list | A saved "My open cases" view |
| Dashboard | A dashboard | Regular status checks |
| Report | A report | A weekly review |
| Record | A single record | A key customer you check often |
| Other pages | Home, Chatter, Files, and so on | General navigation |
The exact choices depend on the app, your permissions, and what the admin has enabled. If an item you want is missing, you may not have access to that object, or the object may not be available for navigation in Lightning Experience.
Personalization and the admin's settings
An admin can control whether users may personalize an app. When the option is turned off for an app, the pencil icon does not appear in that app. Users then need an admin to make any change.
Admin changes made after you personalize can interact with your choices in these ways:
- If the admin adds a new item to the app, it shows up in your bar. It typically appears at the end, after your reordered items.
- If the admin removes an item you also customized, that item disappears for you too.
- If you have lost access to an object, for example through a permission set change, its item no longer works for you.
This is why a full reset is a useful diagnostic step. If your bar behaves oddly, reset it and compare it with a coworker's.
How the pieces fit together
The diagram shows how an app definition and a user's personal settings combine into the bar you see.
Personalized items and URLs
Every navigation item resolves to a Lightning URL, and personalizing the bar does not change those URLs. A bar item for Account list view Recent opens this address, and so would typing it into the browser:
/lightning/o/Account/list?filterName=RecentA record item opens the record view page:
/lightning/r/Account/001XXXXXXXXXXXXXXX/viewThis is a practical point for troubleshooting. If a bar item does not work, try the equivalent URL. If the URL works, the problem is with the item. If the URL fails too, the problem is with access to the object or record.
Personalization compared with favorites
Favorites and personalized navigation items overlap, so people often confuse them.
| Feature | Favorites | Personalized navigation items |
|---|---|---|
| Where it appears | The star menu in the header | The navigation bar of one app |
| Scope | All apps | One app |
| Good for | Records, pages, and lists you want from anywhere | Items you use as part of one workflow |
| Effort to set up | One click on the star | Edit dialog and save |
Use a favorite when you want to reach something from any app. Use a personalized item when the item belongs to the routine of a single app.
Common errors and fixes
- The pencil icon is missing. The admin has disabled personalization for the app, or you are in an app type that does not support it. Ask the admin, or check whether you are in the app you expected.
- A change appears in one app and not another. Personalization is per app. Repeat the change in the other app.
- An item cannot be removed. The admin made it required. Only the admin can remove it.
- An item opens the wrong list view. An object item opens the last list view you used. Add the specific list view as its own item.
- A coworker sees something different. Expected. Each user has their own personalization.
- The item you want cannot be found in the Add dialog. Check your object permissions. Also check whether the item type is supported for navigation.
- The bar looks wrong after an app update. Reset the navigation items, then rebuild your preferences one change at a time.
Developer note: personalization and code
Personalization is a user interface feature. It does not change what your code can reach. A Lightning Web Component navigates by destination, not by bar item, so it works whether or not the user has the item in their bar. The component below opens the Account Recent list view and a specific record:
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'
}
});
}
}The navigation still depends on permissions. A user without access to Accounts reaches an error page, whether or not the bar contains an Accounts item.
A suggested setup routine
- Open the app you use most and look at the default bar.
- List the three or four destinations you open every day.
- Add any that are missing, preferring specific list views over generic objects where you always want the same filter.
- Drag them into the order you use them.
- Rename items only if the default label is unclear to you.
- Save, then test each item.
- Mark other frequently needed pages as favorites for cross-app access.
Exercise
You added the Account object to the Sales app bar, but it always opens a list you did not want. You want one click to open the "Technology Accounts" list. Your coworker says her Service app bar already shows it. What do you do, and why does her Service app setting not help you?
Show answer
Open the Edit Navigation Items dialog in the Sales app, use Add More Items, and add the "Technology Accounts" list view as its own item. An object item opens the last list view used, so a list view item is the reliable way to open a fixed list. Her Service app change does not help because personalization is stored per user and per app, so each user must make the change in each app.
Exercise
A user reports that the pencil icon for editing navigation items is missing in one app, but present in another. Give two likely causes and one way to check each.
Show answer
Cause one: the admin disabled personalization for that app. Check the app's settings in App Manager. Cause two: the user is in an app or app type that does not support personalization, so compare the app type with the one where the icon appears. Asking a coworker to open the same app can separate an app-wide setting from a problem with one user.