mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-06 15:16:56 +01:00
Add trigger-default and declined-Confirm knowledge with review cues
Three Microsoft-layer articles with good/bad samples: - error-handling/declined-confirm-must-abort-not-partially-apply - data-modeling/delete-master-data-with-trigger - data-modeling/master-data-must-be-inserted-with-trigger Wire targeted worklist cues into al-error-handling-review and al-data-modeling-review and register the samples in review-fixtures.json. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
fd59919778
commit
a0d23a982c
12 changed files with 275 additions and 4 deletions
|
|
@ -0,0 +1,16 @@
|
|||
codeunit 50100 "Sample Customer Import"
|
||||
{
|
||||
procedure CreateCustomer(ExternalName: Text[100]; ExternalCountry: Code[10]): Code[20]
|
||||
var
|
||||
Customer: Record Customer;
|
||||
begin
|
||||
Customer.Init();
|
||||
// Insert(true) runs Customer.OnInsert: "No." from the number series,
|
||||
// contact, default salesperson, dimension sync, and timestamps.
|
||||
Customer.Insert(true);
|
||||
Customer.Validate(Name, ExternalName);
|
||||
Customer.Validate("Country/Region Code", ExternalCountry);
|
||||
Customer.Modify(true);
|
||||
exit(Customer."No.");
|
||||
end;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue