ApplicationArea on API page (PC0024)
API pages should not have ApplicationArea properties set, as they are not displayed in the UI and the ApplicationArea concept does not apply to API access.
A code fix is available for this diagnostic.
Example
The following API page incorrectly sets ApplicationArea:
page 50100 "My API Page"
{
PageType = API;
ApplicationArea = All; // ApplicationArea on API page [PC0024]
layout
{
area(Content)
{
field(name; Rec.Name)
{
ApplicationArea = All; // ApplicationArea on API page [PC0024]
}
}
}
}
To fix this, remove the ApplicationArea properties:
page 50100 "My API Page"
{
PageType = API;
layout
{
area(Content)
{
field(name; Rec.Name)
{
}
}
}
}