mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 14:46:55 +01:00
Move canonical knowledge for Microsoft-owned review domains into the Microsoft layer and document the skill/knowledge co-location policy. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2a6ea875-d38e-4f30-aadb-0d606f9be231
16 lines
553 B
AL
16 lines
553 B
AL
codeunit 50100 "Validate Partial Rec Good"
|
|
{
|
|
procedure UppercaseUsCustomerNames()
|
|
var
|
|
Customer: Record Customer;
|
|
begin
|
|
// Include every field that Name.OnValidate reads so the runtime never JIT-loads.
|
|
Customer.SetLoadFields(Name, "Search Name");
|
|
Customer.SetRange("Country/Region Code", 'US');
|
|
if Customer.FindSet(true) then
|
|
repeat
|
|
Customer.Validate(Name, UpperCase(Customer.Name));
|
|
Customer.Modify(false);
|
|
until Customer.Next() = 0;
|
|
end;
|
|
}
|