New Navigation Item Collection
Define the items of a navigation menu once in a flow action, then feed the same collection to every Avonni Navigation on every screen.
The New Navigation Item Collection action builds a list of menu items (labels, values, badges, sub items) as a flow resource. Every Navigation that uses it as its data source shows the same menu, so a flow with five screens has one place to edit the menu instead of five.

Overview
A service agent works an account across four screens: Overview, Contacts, Opportunities and Cases. Each screen shows the same menu. Typing the four items into four Navigation components means four copies to keep in sync. With this action, the flow builds the items once at the start, and each Navigation reads them through its Variable data source.
Items typed in each Navigation (Manual)
This action + Variable
Where you edit the menu
In every Navigation
In the action
Best for
One menu on one screen
The same menu on several screens
Use the Action
Add the items
Under Navigation Items, add one item per menu entry. For each one, fill Label and check its Value:
Overview
overview
Contacts
contacts
Opportunities
opportunities
Cases
cases
Value fills itself from the label and sits under the item's Advanced Options, with Description, Tag, Tag Variant, Tag Outline and Tooltip. Open it to set a stable value: the flow compares the value, and a renamed value breaks every condition that uses it.
Add badges, icons or sub items if you need them
Tag puts a badge after the label, for example
VIPon Overview. Tag Variant sets its color, Tag Outline draws it as an outline.Icon Name and Icon Size add an icon to the item.
Sub Items adds a dropdown under the item, for example Open and Closed under Cases. Turn on Unselectable on Cases so it acts as a heading.
Feed the collection to the Navigation
Open the screen, select the Avonni Navigation and click Open Component Builder.
In the Properties tab, set the data source to Variable.
Under Items Collection, choose Custom and type the action's API name, for example
Build_Menu. The dropdown does not list action outputs.
Repeat on every screen that shows the menu.
The full pattern, with a Decision that opens the screen of the item the agent clicks, is in Reuse one menu across a multi-screen flow.
Input
The action has one input, Navigation Items (required). Each item has these settings. Value, Description, Tag, Tag Variant, Tag Outline and Tooltip are under the item's Advanced Options.
Label
The text shown on the item.
Value
Required, and unique. What the Navigation returns in Active Navigation Item Value when the user picks this item.
Description
Text under the label. Shown in vertical orientation. In horizontal orientation, shown only for sub items that are not a column or tab name.
Tag
A text badge to the right of the label, such as a status. It only displays: it does not filter or group the items.
Tag Variant
Color of the badge: Base (default), Brand, Inverse, Alt-Inverse, Success, Info, Warning, Error, Offline. Requires Tag.
Tag Outline
Draws the badge with an outline. Requires Tag.
Tooltip
Text shown when the mouse moves over the item.
Icon Name
An icon from the Lightning Design System, for example standard:case.
Icon Size
Xxs, Xs, Small (default), Medium or Large. Requires Icon Name.
Sub Items
Items shown under this one. A sub item has the same settings, from Label to Icon Size.
Unselectable
The item cannot be selected, only its sub items can.
Tooltip and Tag Outline accept a flow resource. For a badge computed in the flow, such as a count of open cases, type the items as Manual items in the Navigation instead, as in Build a navigation menu from a picklist.
The action editor stops at two levels and has no Menu Variant, Hide Chevron, Disabled or Hidden. When the menu needs a third level or one of these settings, use Manual items or a record collection with Data Mappings: see the Navigation reference.
Output
The action returns the collection of navigation items. Flow stores it automatically under the action API name, and the Items Collection field of a Navigation set to Variable accepts that name, typed under Custom. No mapping is needed.
Troubleshooting
"You provided an empty value for the navigation items." Navigation Items has no item. Add at least one.
"One or more navigation items have an empty value." An item has no Value. Fill it for every item.
The menu is empty at runtime. The flow reaches the screen before the action runs, so the collection is still empty. Move the action before the first screen that shows the menu, on every path that leads to it.
Last updated
Was this helpful?
