Posts

Showing posts from August, 2025

How to Add a Hyperlink to a Role Center in Business Central

Image
Sometimes, you may want to quickly add a button on the Role Center page that opens an external website (e.g., company portal, Microsoft docs, etc.). This can be done by extending the Role Center and adding a custom action that uses the Hyperlink system function in AL. Code Example  Codeunit codeunit 50100 URLDisplay {     trigger OnRun()     begin         Hyperlink('https://www.microsoft.com/en-us/dynamics-365/products/business-central');     end; } Page extension pageextension 50100 MyExtension extends "Business Manager Role Center" {     actions     {         addbefore("Sales Quote")         {             action(AddHyperlink)             {                 Caption = 'URL Display';                 ApplicationArea = All;     ...

Add Custom Reports in the Reports & Analysis Page

Image
 The Reports and Analysis (Role Explorer) page is a system page → you can’t extend it directly . The supported way is to extend the target Role Center (e.g., Business Manager, Accountant, etc.) and add your custom report actions (or a custom Part) there. Those actions then show up in the Reports & Analysis area the button opens. In this example, I created a pageextension object to extend the Business Manager Role Center so that I can surface my own reports on the dashboard. Inside the extension, I used the actions block with addlast(sections) to insert a new group called Customer Report under the Role Center’s Reporting area. Within this group I defined two actions , one pointing to the standard Customer - List report and the other to the Customer - Top 10 List report. Each action has a caption, an icon, and a RunObject property that links it to the actual report object. Once published, this extension adds a Customer Report group in the Reporting tab, and those acti...