Skip to main content
A navigation menu item is an entry in the left sidebar. Use 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

  • type determines what the menu item links to. Each type pairs with a specific identifier field:
  • position controls 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).
  • icon and color are optional and customize how the entry looks.
  • folderUniversalIdentifier is also available on any item to nest it inside a FOLDER-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.