bcquality/microsoft/knowledge/web-services/api-page-flowfields-must-be-calcfields.good.al
Michael Dieringer 057e17c202 Add 18 community AL/BC patterns across style, data-modeling, web-services, appsource, breaking-changes, performance, and testing
Contributed by CURABIS ApS, generalized from patterns observed across real AppSource/PTE development. Each article follows the knowledge file format (frontmatter, Description/Best Practice/Anti Pattern, sibling .good.al/.bad.al samples).
2026-09-21 22:24:07 +02:00

27 lines
557 B
AL

page 50100 "Item Availability API"
{
PageType = API;
APIPublisher = 'contoso';
APIGroup = 'inventory';
APIVersion = 'v1.0';
EntityName = 'itemAvailability';
EntitySetName = 'itemAvailabilities';
SourceTable = Item;
layout
{
area(content)
{
repeater(General)
{
field(itemNo; Rec."No.") { }
field(quantityOnHand; Rec.Inventory) { }
}
}
}
trigger OnAfterGetRecord()
begin
Rec.CalcFields(Inventory);
end;
}