mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 14:46:55 +01:00
These articles capture BC-specific mechanics agents still invert: partial-record JIT on writes, Reset clearing SetLoadFields, HttpClient inside write transactions, and batched number series, plus negative guidance that stops over-eager Query and IsEmpty "fixes". Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
399 B
AL
13 lines
399 B
AL
codeunit 50100 "HttpClient Holds Locks Good"
|
|
{
|
|
procedure SyncCustomerLastName(var Customer: Record Customer)
|
|
var
|
|
Client: HttpClient;
|
|
Response: HttpResponseMessage;
|
|
begin
|
|
Customer."Search Name" := Customer.Name;
|
|
Customer.Modify(false);
|
|
Commit();
|
|
Client.Get(StrSubstNo('https://example.local/sync/%1', Customer."No."), Response);
|
|
end;
|
|
}
|