mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-07 01:46:53 +01:00
Correct high-confidence Business Central guidance and samples for upgrade tags, collectible errors, trigger semantics, obsoletion, events, interfaces, API contracts, and test transactions. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: e05a43e7-6448-4d67-9c73-798523f5d945
16 lines
527 B
AL
16 lines
527 B
AL
codeunit 50221 "Upgrade Existing Field"
|
|
{
|
|
Subtype = Upgrade;
|
|
|
|
local procedure UpdateCustomerCreditLimit()
|
|
var
|
|
Customer: Record Customer;
|
|
DT: DataTransfer;
|
|
begin
|
|
// DataTransfer skips the field's OnValidate logic and validation events,
|
|
// plus the table OnModify trigger and row-based modification events.
|
|
DT.SetTables(Database::Customer, Database::Customer);
|
|
DT.AddConstantValue(50000, Customer.FieldNo("Credit Limit (LCY)"));
|
|
DT.CopyFields();
|
|
end;
|
|
}
|