mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-07 15: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>
15 lines
549 B
AL
15 lines
549 B
AL
codeunit 50100 "Login Subscriber IO Bad"
|
|
{
|
|
[EventSubscriber(ObjectType::Codeunit, Codeunit::"System Initialization", OnAfterLogin, '', false, false)]
|
|
local procedure OnAfterLogin()
|
|
var
|
|
Client: HttpClient;
|
|
Response: HttpResponseMessage;
|
|
GLEntry: Record "G/L Entry";
|
|
begin
|
|
// Blocks UI, API, and job-queue session creation until HTTP and SQL finish.
|
|
Client.Get('https://example.local/warmup', Response);
|
|
GLEntry.SetLoadFields("Entry No.");
|
|
if GLEntry.FindLast() then;
|
|
end;
|
|
}
|