mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-06 09:26:52 +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>
37 lines
1,014 B
AL
37 lines
1,014 B
AL
// Writable API page with no DelayedInsert: on a POST the platform may insert the
|
|
// row on the first assigned field, before the rest of the payload is applied,
|
|
// failing validation that needs later fields or persisting a partial record.
|
|
page 50347 "WS DelayedInsert Bad"
|
|
{
|
|
PageType = API;
|
|
APIPublisher = 'contoso';
|
|
APIGroup = 'sales';
|
|
APIVersion = 'v1.0';
|
|
EntityName = 'customer';
|
|
EntitySetName = 'customers';
|
|
ODataKeyFields = SystemId;
|
|
SourceTable = Customer;
|
|
|
|
layout
|
|
{
|
|
area(content)
|
|
{
|
|
repeater(records)
|
|
{
|
|
field(id; Rec.SystemId)
|
|
{
|
|
Caption = 'id';
|
|
Editable = false;
|
|
}
|
|
field(number; Rec."No.")
|
|
{
|
|
Caption = 'number';
|
|
}
|
|
field(displayName; Rec.Name)
|
|
{
|
|
Caption = 'displayName';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|