With the release of Business Central 2025 Wave 1, Business central continues to refine and empower AL developers with more flexibility when extending standard functionality. One of the subtle but significant features is the ability to change the CardPageId
in a PageExtension
, giving developers greater control over navigation behavior in the application.
Why Would You Want to Change CardPageID
?
Consider these scenarios:
Let’s say you’ve built a custom card page for customers that shows additional analytics or fields. You want to replace the default Customer Card when users open a customer from the list.
page 50101 "Custom Customer Card"
{
PageType = Card;
SourceTable = Customer;
ApplicationArea = All;
layout
{
area(content)
{
group("Custom Info")
{
field("Customer Name"; Name)
{
ApplicationArea = All;
}
// Additional fields and logic...
}
}
}
}
Then, in your page extension:
pageextension 50100 CustomerListExt extends "Customer List"
{
CardPageId = "Custom Customer Card";
}
Now, your users will be directed to the Custom Customer Card
page instead of the standard one.
The ability to change the CardPageID
in page extensions in Business Central Wave 1 2025 is a significant step forward in providing developers with more control over the user interface. This seemingly small change unlocks a wealth of possibilities for creating more tailored, efficient, and user-friendly Business Central solutions.
Stay tuned for more updates.
Original Post https://ammolhsaallvi.blog/2025/04/24/changing-the-cardpageid-in-a-page-extension-business-central-wave-1-2025/