ApplicationArea property is not applicable to API pages

Properties
PC0024 Info Design Code Fix Ignore Obsolete

The ApplicationArea property on an API page — whether at the page level or on individual field controls — has no effect. The property controls which controls are visible during a user session, but API pages do not participate in user sessions:

This type of page can’t be displayed in the user interface, but is intended for building reliable integration services.

API Page Type on Microsoft Learn

API pages are consumed through OData endpoints. The ApplicationArea property is silently ignored, and keeping it adds noise without functional value. Remove it from both the page object and its field controls.

Example

page 50100 "Item API"
{
    PageType = API;
    ApplicationArea = All; // ApplicationArea property is not applicable to API pages [PC0024]
    APIPublisher = 'contoso';
    APIGroup = 'app1';
    EntityName = 'item';
    EntitySetName = 'items';
    SourceTable = Item;
    DelayedInsert = true;

    layout
    {
        area(Content)
        {
            repeater(Group)
            {
                field(number; Rec."No.")
                {
                    ApplicationArea = All; // ApplicationArea property is not applicable to API pages [PC0024]
                    Caption = 'Number';
                }
            }
        }
    }
}

Remove the ApplicationArea properties:

page 50100 "Item API"
{
    PageType = API;
    APIPublisher = 'contoso';
    APIGroup = 'app1';
    EntityName = 'item';
    EntitySetName = 'items';
    SourceTable = Item;
    DelayedInsert = true;

    layout
    {
        area(Content)
        {
            repeater(Group)
            {
                field(number; Rec."No.")
                {
                    Caption = 'Number';
                }
            }
        }
    }
}

See also