mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-06 17:36:53 +01:00
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>
33 lines
871 B
AL
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';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|