community postAL Developmentcommunity - not Microsoftreviewed - checked by Opus

Dynamics 365 Business Central: Building a Custom Tree Navigation Menu with Control Add-in

Building a custom tree navigation menu in Business Central using a Control Add-in with JavaScript and CSS. This approach enables users to organize pages, reports, XMLports, and queries in a grouped tree view with search and custom icons, configured through a standard AL setup page.

post Dynamics 365 Lab

Yun Zhu · 2026-12-04 · 396 words · about 2 min

"Some business scenarios require a clean, consolidated tree menu where users can quickly access pages, reports, and data lists with custom grouping and icons."

Key points

  • Tree view layout with expand/collapse support and custom icons for menu organization
  • Supports running multiple object types: pages, reports, XMLports, and queries
  • Built-in search and filter functionality for quick menu item access
  • Configuration stored in an AL table with an easy lookup interface
  • Control Add-in uses JavaScript and CSS for responsive web client rendering

Quotes

  • “Some business scenarios require a clean, consolidated tree menu where users can quickly access pages, reports, and data lists with custom grouping and icons.” (Explains the business need and use case that motivates this custom solution beyond standard Role Centers)

AL objects mentioned

As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.

  • table “Classic Menu Config”

Not found in BC28-30: table “Classic Menu Config”.

Context

  • Features: Tree View Layout, Custom Icons, Multiple Object Types, Filter & Search, Easy Configuration, MenuItemSelected event, OnLookup object selection, Role Center integration

Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.