community postAdministration & Setupcommunity - not Microsoftreviewed - checked by Opus

Dynamics 365 Business Central: How to set Company Badge (System Indicator) via AL Code – Automatically set Company Badge

This post explains how to set company badges (system indicators) automatically via AL code using the UI Helper Triggers codeunit event subscriber, without modifying the Company Information table. Company badges help users identify which company and environment they are working in.

post Dynamics 365 Lab

Yun Zhu · 2026-04-16 · 471 words · about 2 min

"company badges to help them quickly identify and keep track of which company they're currently working in"

Key points

  • Use codeunit 2000000004 ‘UI Helper Triggers’ and subscribe to the GetSystemIndicator business event to set company badges programmatically
  • Set badge text and style using the Style Option, which includes 10 predefined color options from Standard to Bright Purple
  • Apply different badges based on company name or other logic using case statements in the event handler
  • Round badges indicate production environments while square badges indicate sandbox environments
  • Browser refresh (Ctrl+F5) updates the badge display in the client

Quotes

  • “company badges to help them quickly identify and keep track of which company they’re currently working in” (Explains the primary user benefit of company badges for multi-company environments)
  • “A round company badge signifies a production environment, and a square badge signifies a sandbox environment.” (Documents how badge shape communicates environment type, a critical safety feature)
  • “set the Company Badge (System Indicator) without modifying the data in the Company Information table” (Highlights the advantage of the programmatic approach over manual UI configuration)

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.

  • codeunit “UI Helper Triggers”
  • codeunit “EventHandlers”

Not found in BC28-30: codeunit “UI Helper Triggers”, codeunit “EventHandlers”.

Context

  • Features: Company Badge (System Indicator), EventSubscriber attribute, GetSystemIndicator business event, UI Helper Triggers codeunit, System Indicator styling with color options
  • Versions: 2022 wave 2 (BC21)

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.