Profile Object

The profile object in Dynamics 365 Business Central allows you to build an individual experience for each user profile. The 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. On a page customization you can add changes to the page layout, and actions; but you cannot add variables, procedures, or triggers.

Note

Page customizations only apply to the RoleCenter they are specified for. In order to see them, in Dynamics 365 Business Central under My Settings, Role Center change to the specific RoleCenter that a page customization is defined for.

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.

Tip

Use Ctrl+Space to trigger IntelliSense and get assistance on code completion, parameter info, quick info, and member lists.

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