Skip to main content

Overview

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.
  • A NATIVE_PAGE item is hidden from members who lack the page’s permission (Workflows for 'workflows', AI for 'agents').
  • The enum also contains NavigationMenuItemType.RECORD, used internally for user-created record favorites, NavigationMenuItemType.AGENT_CHAT_CHANNEL, used for chat channels pinned to favorites, and NavigationMenuItemType.WORKFLOW and NavigationMenuItemType.AGENT, used for workflows and agents pinned to the sidebar. None of them is usable from an app manifest (there is no field to reference a record, a channel, a workflow or an agent).
  • icon and color are optional and customize how the entry looks.
  • parentUniversalIdentifier is also available on any item to nest it inside a FOLDER-type parent. The previous name, folderUniversalIdentifier, is deprecated but still accepted.
  • twenty app pull writes your navigation menu items back as defineNavigationMenuItem() files. An item a workspace member added to their own sidebar, and one pinned to a record, belong to that workspace rather than to your app and are reported instead; see what pull does not write.
Common pitfall: creating an object without an associated navigation menu item makes that object unreachable from the sidebar. Unless it’s a technical/internal object, every custom object should have a sidebar entry pointing at it.