mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 14:46:55 +01:00
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).
27 lines
629 B
AL
27 lines
629 B
AL
page 50101 "Customer Info API"
|
|
{
|
|
PageType = API;
|
|
APIPublisher = 'contoso';
|
|
APIGroup = 'sales';
|
|
APIVersion = 'v1.0';
|
|
EntityName = 'customerInfo';
|
|
EntitySetName = 'customerInfos';
|
|
SourceTable = Customer;
|
|
ODataKeyFields = "No.";
|
|
InsertAllowed = true;
|
|
|
|
layout
|
|
{
|
|
area(content)
|
|
{
|
|
repeater(General)
|
|
{
|
|
field(customerNo; Rec."No.")
|
|
{
|
|
Editable = false; // consumer must supply "No." on POST — this rejects it
|
|
}
|
|
field(name; Rec.Name) { }
|
|
}
|
|
}
|
|
}
|
|
}
|