bcquality/microsoft/knowledge/web-services/expose-systemid-as-the-api-key.bad.al
Jesper Schulz-Wedde 2da72e782a Seed web-services (API v2) knowledge domain
Add eight web-services API page knowledge articles (each with .good.al/.bad.al samples), a new al-web-services-review leaf skill, and wire it into al-code-review and the README.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-25 12:35:53 +02:00

33 lines
871 B
AL

// Unstable key: the endpoint addresses records by the business field "No.".
// When a user renames a customer's number, every external reference built on
// the old value dangles. ODataKeyFields should be SystemId instead.
page 50345 "WS SystemId Key Bad"
{
PageType = API;
APIPublisher = 'contoso';
APIGroup = 'sales';
APIVersion = 'v1.0';
EntityName = 'customer';
EntitySetName = 'customers';
ODataKeyFields = "No.";
SourceTable = Customer;
DelayedInsert = true;
layout
{
area(content)
{
repeater(records)
{
field(number; Rec."No.")
{
Caption = 'number';
}
field(displayName; Rec.Name)
{
Caption = 'displayName';
}
}
}
}
}