Dynamics 365 Business Central: Add Custom Report Layouts to Report Layouts (Migrate to System Layouts)

Dynamics 365 Business Central

Hi, Readers.
Today I would like to briefly talk about how to add Custom Report Layouts to Report Layouts in Business Central.
Until now, if we need to modify the report layout without modifying the internal logic and Dataitems of the report, we can simply operate in Report Layout Selection page.

To create a custom layout, either copy an existing custom layout or add a new custom layout. Custom layouts are often based on a built-in layout. When you add a new custom layout, you can choose to add either an RDLC or a Word report layout type, or both. The new custom layout will be based on the built-in layout for the report, if one is available. If there’s no built-in layout for the report type, a new blank layout is created. You’ll have to modify and design this blank layout from scratch.

But Microsoft has informed that Custom report layouts is a legacy feature. More details: (Legacy) Create and modify custom report layouts

Custom report layouts is a legacy feature that is being phased out. Instead, you should start creating user-defined layouts as described here.

Why? Starting from Business Central 2022 wave 1 (BC20), Microsoft released a new way to manage layouts, Report Layouts page.

We can create a new layout on the new page. For example,

More details: Business Central 2022 wave 1 (BC20): New pages for report layout administration (page 9660 “Report Layouts”)

It’s very simple, but there is a problem here. The layouts we added previously in Custom Report Layouts are not displayed in the new page (Report Layouts). For example,
Custom Report Layouts:

Report Layouts: There are only standard layouts and layouts created from this page.

So, is it possible to transfer the previous Custom Report Layouts to Report Layouts? Yes, Microsoft has prepared a standard method for us.

Standard code:

procedure MigrateCustomReportLayouts:

For example,

Test video: Youtube

Business Central short: Add Custom Report Layouts to Report Layouts (Migrate to System Layouts)

Very simple, give it a try!!!😁

END

Hope this will help.

Thanks for reading.

ZHU

コメント

Copied title and URL