defineNavigationMenuItem() to ship custom sidebar links — typically one per view you ship — or to point at external URLs.
src/navigation-menu-items/example-navigation-menu-item.ts
Key points
-
typedetermines what the menu item links to. Each type pairs with a specific identifier field: -
positioncontrols ordering in the sidebar. -
The enum also contains
NavigationMenuItemType.RECORD, used internally for user-created record favorites — it isn’t usable from an app manifest (there is no field to reference a record). -
iconandcolorare optional and customize how the entry looks. -
folderUniversalIdentifieris also available on any item to nest it inside aFOLDER-type parent.
Common pitfall: creating an object without an associated view + navigation menu item makes that object invisible to users. Unless it’s a technical/internal object, every custom object should have a default view and a sidebar entry pointing at it.