mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 22:56: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> Co-authored-by: Jesper Schulz-Wedde <jesper.schulzwedde@microsoft.com> Copilot-Session: 2a6ea875-d38e-4f30-aadb-0d606f9be231
21 lines
634 B
AL
21 lines
634 B
AL
codeunit 50100 "Pass Var Enumerator Good"
|
|
{
|
|
procedure ListUsCustomerCities()
|
|
var
|
|
Customer: Record Customer;
|
|
begin
|
|
Customer.SetLoadFields(Name);
|
|
Customer.SetRange("Country/Region Code", 'US');
|
|
if Customer.FindSet() then
|
|
repeat
|
|
EnsureCityLoaded(Customer);
|
|
Message(Customer.Name + ' ' + Customer.City);
|
|
until Customer.Next() = 0;
|
|
end;
|
|
|
|
local procedure EnsureCityLoaded(var Customer: Record Customer)
|
|
begin
|
|
if not Customer.AreFieldsLoaded(Customer.City) then
|
|
Customer.LoadFields(Customer.City);
|
|
end;
|
|
}
|