Profile Object

The profile object in Dynamics 365 Business Central allows you to build an individual experience for each user profile. Profile object performs a validation to check whether the specified role center page exists, and page customization objects exists, when you define a new profile object. You can add changes to the page layout, and actions; but you cannot add variables, procedures, or triggers.

Note

Extension objects can have a name with a maximum length of 30 characters.

Snippet support

Typing the shortcut tprofile will create the basic layout for a profile object when using the AL Language extension in Visual Studio Code.

Profile syntax

profile MyProfile 
{
    Description = 'My Description';
    RoleCenter = RoleCenter;
    Customizations = Customizations;
}

Profile example

The following profile object example performs a validation to check if the Business Manager page of type RoleCenter exists, and if MyCustomization exists, and if it is a page customization object. Then the page customization modifies the layout of the Customer List to make the Name field invisible using the modify method.

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

pagecustomization MyCustomization customizes "Customer List"
{
    layout
    {
        modify(Name)
        {
            Visible = false;
        }
    }
}

See Also

AL Development Environment
Developing Extensions
Pages Overview
Page Customization Object