How to Create a Custom Headline Part with a Clickable Hyperlink in Microsoft Dynamics 365 Business Central

Share this Article
The Role Center is one of the first pages users see when they open Microsoft Dynamics 365 Business Central. It provides a personalized workspace where users can access important information, activities, and insights.
But what if you want to add your own custom headline with a clickable website link directly to the Role Center?
In this article, we’ll create a custom Headline Part and add it to the Business Manager Role Center using AL.
What We Are Going to Build
Our solution will contain two AL objects:
A custom HeadlinePart page
A PageExtension for the Business Manager Role Center
Step 1: Create a Custom Headline Part
First, create a page with PageType = HeadlinePart.
page 50103 "My Headlines"
{
PageType = HeadlinePart;
ApplicationArea = All;
layout
{
area(Content)
{
field(Headline1; Headline1Txt)
{
ApplicationArea = All;
trigger OnDrillDown()
begin
if Headline1Txt <> '' then
Hyperlink(Headline1Txt);
end;
}
field(Headline2; Headline2Txt)
{
ApplicationArea = All;
}
}
}
var
Headline1Txt: Text;
Headline2Txt: Text;
trigger OnOpenPage()
begin
GenerateHeadlines();
end;
local procedure GenerateHeadlines()
begin
Headline1Txt := 'https://anuragrajput.com';
Headline2Txt := 'Welcome to the Business Manager Role Center!';
end;
}How does the hyperlink work?
We use the OnDrillDown() trigger:
trigger OnDrillDown()
begin
if Headline1Txt <> '' then
Hyperlink(Headline1Txt);
end;When the user clicks the headline, Hyperlink() opens the URL in the browser.
The condition:
if Headline1Txt <> '' thenensures that we don't try to open an empty URL.
Step 2: Add the Headline Part to the Role Center
Creating the Headline Part alone won't display it on the Role Center. We need to add it through a page extension.
pageextension 50103 "Business Manager RC Ext"
extends "Business Manager Role Center"
{
layout
{
Modify(Control139)
{
visible = false;
}
addfirst(RoleCenter)
{
part(MyHeadlines; "My Headlines")
{
ApplicationArea = All;
}
}
}
}The important part is:
addfirst(RoleCenter)
{
part(MyHeadlines; "My Headlines")
{
ApplicationArea = All;
}
}This adds our custom My Headlines part to the Business Manager Role Center.
addfirst places it at the beginning of the Role Center layout.
The Modify(Control139) section is optional and is only required if you want to hide the existing control.


Possible Use Cases
This approach can be useful for providing quick access to:
🌐 Company websites
📊 Power BI dashboards
📚 Documentation
🎫 Support portals
🏢 Internal applications
🔗 Customer or vendor portals
Instead of hardcoding the URL, you can also store it in a setup table and retrieve it dynamically, making the solution configurable without changing the AL code.
Conclusion
Adding a clickable hyperlink to a Business Central Role Center doesn't require a complex customization.
The main concepts are:
Use
PageType = HeadlinePart
Handle the click with
OnDrillDown()Open the URL using
Hyperlink()Add the Headline Part using a
PageExtension
A small AL customization can make the Role Center more interactive, useful, and user-friendly.
Happy Coding!