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).
This commit is contained in:
Michael Dieringer 2026-09-04 20:43:00 +02:00
parent 07e324ddbc
commit 057e17c202
52 changed files with 1109 additions and 0 deletions

View file

@ -0,0 +1,24 @@
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) { }
// No OnAfterGetRecord CalcFields — Inventory is a FlowField
// and returns 0 to every consumer.
}
}
}
}