Codeunit 6126 E-Doc. GL Account Matching

E-Document Core, Microsoft.eServices.EDocument.Processing.AI

Source AL, 298 lines

src/Apps/W1/EDocument/App/src/Processing/AI/Tools/EDocGLAccountMatching.Codeunit.allines 17 to 32 of 298, Copyright (c) Microsoft Corporation. MIT

codeunit 6126 "E-Doc. GL Account Matching" implements "AOAI Function", IEDocAISystem{    Access = Internal;    TableNo = "E-Document Purchase Line";    InherentEntitlements = X;    InherentPermissions = X;    EventSubscriberInstance = Manual;    trigger OnRun()    var        GLAccount: Record "G/L Account";        TempEDocLineMatchBuffer: Record "EDoc Line Match Buffer" temporary;        EDocumentAIProcessor: Codeunit "E-Doc. AI Tool Processor";        EDocActivityLogBuilder: Codeunit "Activity Log Builder";        Response: Codeunit "AOAI Operation Response";

All 298 lines

Events 2 in 29

[IntegrationEvent] OnGetGLAccountMatchFunctionResponse(TempEDocMatchLineBuffer: Record "EDoc Line Match Buffer" temporary)new in 27
[IntegrationEvent] OnUserMessageCreated(UserMessageTxt: Text)new in 27

Public procedures 8 in 29

BuildGLAccounts(): JsonObjectnew in 26changed in 27
GetPrompt(): JsonObjectnew in 26
Execute(Arguments: JsonObject): Variantnew in 26
GetName(): Textnew in 26
BuildContext(Vendor: Record Vendor): JsonObjectnew in 27
GetSystemPrompt(UserLanguage: Text): SecretTextnew in 27

All 11 procedures in 26-29

Changes 11 in 27

List17181920212223242526272829
Object1
Procedures8
Events2
codeunit 6126 "E-Doc. GL Account Matching"new in 26
changed, was codeunit 6126 "Line To Account LLM Matching"
GetPurchaseLineAccountsWithCopilot(var EDocumentPurchaseLine: Record "E-Document Purchase Line"): Dictionary26 to 26
gone
BuildMostAppropriateGLAccountPromptTask(): SecretText26 to 26
gone
BuildGLAccounts(): JsonObjectnew in 26changed in 27
changed, was BuildGLAccounts(): Text
BuildEDocumentPurchaseLines(var EDocumentPurchaseLine: Record "E-Document Purchase Line"; var LineDictionary: Dictionary of [Integer, Text[100]]): Text26 to 26
gone
BuildContext(Vendor: Record Vendor): JsonObjectnew in 27
added

All 11 changes in 26-29