Monday, 7 April 2025

Extending CardPageId on List and ListPart Pages in Business Central

In Microsoft Dynamics 365 Business Central, developers often want to customize the page that opens when a user double-clicks on a record in a list or listpart page. This is controlled by the CardPageId property. Previously, it was not possible to modify this property via pageextension.

Microsoft has enabled CardPageId extensibility in the latest release.


You can now override the CardPageId on list and listpart pages via AL pageextension objects.

  • If the base page defines a CardPageId, you can override it.
  • If multiple extensions modify it, the last applied extension wins (per-tenant extensions override AppSource ones).

Example: Extend Customer List to Use Custom Card Page

Let’s say you’ve created a new Customer Card page named "My Custom Customer Card" and you want the Customer List to open this custom card on double-click.

Here’s how you do it:

pageextension 50100 CustomerListExt extends "Customer List"

{

    CardPageId = "My Custom Customer Card";

}

That’s it!

Now when a user opens the Customer List and double-clicks on any customer, your custom card page opens instead of the standard one.




  • Race conditions: If multiple extensions set the CardPageId, the last loaded extension wins. This typically won't be a problem, but you can control precedence using a per-tenant extension.
  • Applies only to list and listpart pages.

If you attempt to set this property with a Runtime of less than 15 in app.json, you will encounter this error.



Monday, 24 March 2025

Reopen Finished Production Orders in Business Central

In manufacturing, accuracy in production records is crucial for maintaining correct inventory levels and cost calculations. However, mistakes can happen even after a production order is marked as Finished. Missing consumption entries or incorrect item tracking can lead to discrepancies in inventory and financial records. To address such issues, Business Central allows you to reopen finished production orders, enabling necessary corrections and ensuring accurate data.


Reopening a finished production order provides flexibility and control over production processes. However, to maintain data integrity, certain restrictions apply:

  • You can reopen finished production orders only one time.
  • You can reopen finished production orders if they don't have output, and cost WIP is written off to your inventory adjustment account.


How to Reopen a Finished Production Order

Follow these simple steps to reopen a finished production order in Business Central:

1.      Navigate to the Finished Production Orders page.

2.      Select the production order you need to edit.

3.      Click the Reopen action.

4.      A confirmation dialog will appear asking, Do you want to reopen the production order?

5.      Click Yes to proceed.

 

 

A screenshot of a computer

AI-generated content may be incorrect.