community postSales & Receivablescommunity - not Microsoftreviewed - checked by Opus

How to open another page instead of Role Center when launching Business Central (Automatically skip the Role Center page)

This post explains how to bypass the Role Center and open a different page automatically when users launch Business Central. It covers the limitations of Role Centers (no triggers allowed), demonstrates using the OnRoleCenterOpen event from Conf./Personalization Mgt. codeunit, and provides a code example that opens the Sales Order List instead of the default Role Center.

post Dynamics 365 Lab

Yun Zhu · 2025-08-05 · 488 words · about 2 min

"A page of type Role Center cannot have triggers."

Key points

  • Role Center pages cannot have triggers or respond to OnOpenPageEvent
  • The OnRoleCenterOpen event in codeunit 9170 allows code execution after Role Center opens
  • Users can navigate directly via URL as a workaround, but this fails for Windows and mobile apps
  • Performance may suffer if Role Center has heavy content; minimize or leave it empty for best results

Quotes

  • “A page of type Role Center cannot have triggers.” (Establishes the core constraint that prevents direct Role Center manipulation and necessitates alternative approaches like event subscribers)
  • “codeunit 9170 “Conf./Personalization Mgt.” -> OnRoleCenterOpen(): Although it cannot completely replace Role Center, you can perform some processing immediately after opening Role Center.” (Identifies the only viable event-based solution for executing code at Role Center startup to achieve the page redirect goal)

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.

No source states these links: they share an object, a model read them, or a person found the same subject.

Heads up

  • warning: “A page of type Role Center cannot have triggers.” (about page Role Center)
  • gotcha: “Although you can write the code in codeunit and use OnOpenPageEvent, it will not prompt an error, but it will not have any effect.” (about OnOpenPageEvent)

Context

  • Features: Role Center customization, OnRoleCenterOpen event, automatic page navigation, event subscriber pattern

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.