Business Central 2024 wave 2 (BC25): Extend and customize profiles from other extensions (New object type: profileextension)

Dynamics 365 Business Central

Hi, Readers.
The public preview for Dynamics 365 Business Central 2024 release wave 2 (BC25) is available. Learn more: Link.

I will continue to test and share some new features that I hope will be helpful.

Extend and customize profiles from other extensions:

Business value:
One of the current extensibility gaps is the lacking ability to extend profiles. This implies that partners have been forced to copy profiles defined in other extensions whenever they needed to do some changes for them. In this release, it’s now possible to define profile extension objects.

https://learn.microsoft.com/en-us/dynamics365/release-plan/2024wave2/smb/dynamics365-business-central/extend-customize-profiles-other-extensions?wt.mc_id=DX-MVP-5004336

Business Central provides both personalization for users and customization for administrators. Personalization allows users to tailor their workspace by adjusting page layouts to suit their own preferences.

Administrators can customize page layouts for a specific profile, based on business roles or departments, so that all assigned users see the same customized page. More details: Customize pages for profiles

For the second way, we can modify the new Profile (Role) through the Page customization object.
For example,

Test code:

profile TheBoss
{
    Description = 'The Boss';
    RoleCenter = "Business Manager Role Center";
    Customizations = MyCustomization;
    Caption = 'Boss';
}

pagecustomization MyCustomization customizes "Customer List"
{
    actions
    {
        moveafter(Orders; "Blanket Orders")

        modify(NewSalesBlanketOrder)
        {
            Visible = false;
        }

    }
}

But we cannot make any changes to the standard Profiles (Roles). With this feature (BC25), you can now create profile extension objects in your AL code👏👏👏. They can be used to modify the target profile’s caption, role center, or even include/remove it from the role explorer. It’s also possible to add page customizations to a specified profile. Example from Microsoft:

Let me do a simple test:
Snippet: ProfileExtension

Very simple.

You can use the same page customization on another ProfileExtension within the same extension package.

Please note that pages modified by ProfileExtension will not be displayed in Customized Pages.

Great. Give it a try!!!😁

Test code:

profileextension BUSINESSMANAGERExt extends "BUSINESS MANAGER"
{
    Caption = 'New Caption';
    Customizations = MyCustomization;
}

profileextension SALESMANAGERExt extends "SALES MANAGER"
{
    Caption = 'New SALES MANAGER';
    Customizations = MyCustomization;
}
profileextension PROJECTMANAGERExt extends "PROJECT MANAGER"
{
    Caption = 'New PROJECT MANAGER';
    Customizations = MyCustomization, MyCustomization2;
}

pagecustomization MyCustomization customizes "Customer List"
{
    actions
    {
        moveafter(Orders; "Blanket Orders")

        modify(NewSalesBlanketOrder)
        {
            Visible = false;
        }
    }
}
pagecustomization MyCustomization2 customizes "Sales Order"
{
    layout
    {
        modify("No.")
        {
            Visible = false;
        }
    }
}

END

Hope this will help.

Thanks for reading.

ZHU

コメント

Copied title and URL