{"title":"Codeunit 6126 E-Doc. GL Account Matching","url":"https://jonas-paprotka.de/ref/codeunit/6126-e-doc-gl-account-matching/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","changedSince":"2026-09-22","source":{"feed":"https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json","package":"Microsoft.E-DocumentCore.symbols.e1d97edc-c239-46b4-8d84-6368bdf67c8b","build":"29.0.54011.55644","builds":{"26":"26.5.38752.40541","27":"27.5.46862.47359","28":"28.5.54151.54365","29":"29.0.54011.55644"},"code":{"28":{"url":"https://jonas-paprotka.de/ref/codeunit/6126-e-doc-gl-account-matching/source/?v=28","repo":"https://github.com/microsoft/BCApps","branch":"releases/28.x","commit":"408a4cc8d3a4c54b60464cc14c964479facb9ba0","path":"src/Apps/W1/EDocument/App/src/Processing/AI/Tools/EDocGLAccountMatching.Codeunit.al","license":"MIT"},"29":{"url":"https://jonas-paprotka.de/ref/codeunit/6126-e-doc-gl-account-matching/source/","repo":"https://github.com/microsoft/BCApps","branch":"releases/29.x","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","path":"src/Apps/W1/EDocument/App/src/Processing/AI/Tools/EDocGLAccountMatching.Codeunit.al","license":"MIT"}},"note":"Presence per major, highest build of each; 17 is the oldest major on the feed. Local procedures are not listed."},"object":{"type":"codeunit","id":6126,"name":"E-Doc. GL Account Matching","app":"E-Document Core","appByVersion":[{"app":"E-Document Core","from":26}],"nameByVersion":[{"name":"Line To Account LLM Matching","from":26},{"name":"E-Doc. GL Account Matching","from":27}],"namespace":"Microsoft.eServices.EDocument.Processing.AI","versions":"26-29","majors":[26,27,28,29],"countries":["W1","DE","US"],"minors":{"W1":"26.2-29.0","DE":"26.2-29.0","US":"26.2-29.0"},"minorsUrl":"https://jonas-paprotka.de/ref/codeunit/6126-e-doc-gl-account-matching/editions.json","extends":null,"extendsUrl":null,"sourceTable":null,"properties":{"access":"Internal","tableNo":"E-Document Purchase Line","eventSubscriberInstance":"Manual","implements":["AOAI Function","IEDocAISystem"]},"extendedBy":[],"implementedBy":[],"sourceFile":"src/Processing/AI/Tools/EDocGLAccountMatching.Codeunit.al","obsolete":null,"obsoleteSeenFrom":null,"byVersion":{"26":{"app":"E-Document Core","name":"Line To Account LLM Matching","ns":"Microsoft.eServices.EDocument.Processing.Import","obsolete":null,"target":"","sourceTable":"","props":{"access":"Internal","implements":["AOAI Function"]},"counts":{"fields":0,"keys":0,"methods":7,"values":0},"stub":false},"27":{"app":"E-Document Core","name":"E-Doc. GL Account Matching","ns":"Microsoft.eServices.EDocument.Processing.AI","obsolete":null,"target":"","sourceTable":"","props":{"access":"Internal","tableNo":"E-Document Purchase Line","eventSubscriberInstance":"Manual","implements":["AOAI Function","IEDocAISystem"]},"counts":{"fields":0,"keys":0,"methods":10,"values":0},"stub":false},"28":{"app":"E-Document Core","name":"E-Doc. GL Account Matching","ns":"Microsoft.eServices.EDocument.Processing.AI","obsolete":null,"target":"","sourceTable":"","props":{"access":"Internal","tableNo":"E-Document Purchase Line","eventSubscriberInstance":"Manual","implements":["AOAI Function","IEDocAISystem"]},"counts":{"fields":0,"keys":0,"methods":10,"values":0},"stub":false},"29":{"app":"E-Document Core","name":"E-Doc. GL Account Matching","ns":"Microsoft.eServices.EDocument.Processing.AI","obsolete":null,"target":"","sourceTable":"","props":{"access":"Internal","tableNo":"E-Document Purchase Line","eventSubscriberInstance":"Manual","implements":["AOAI Function","IEDocAISystem"]},"counts":{"fields":0,"keys":0,"methods":10,"values":0},"stub":false}},"fields":[],"keys":[],"procedures":[{"name":"GetPurchaseLineAccountsWithCopilot","sig":"(var Record E-Document Purchase Line)","named":"(var EDocumentPurchaseLine: Record \"E-Document Purchase Line\")","returns":"Dictionary","kind":"procedure","access":"public","obsolete":null,"range":"26","first":26,"last":26,"obsoleteSince":null,"spans":[{"from":26,"to":26,"named":"(var EDocumentPurchaseLine: Record \"E-Document Purchase Line\")","returns":"Dictionary","kind":"procedure","access":"public","obsolete":null}]},{"name":"BuildMostAppropriateGLAccountPromptTask","sig":"()","named":"()","returns":"SecretText","kind":"procedure","access":"public","obsolete":null,"range":"26","first":26,"last":26,"obsoleteSince":null,"spans":[{"from":26,"to":26,"named":"()","returns":"SecretText","kind":"procedure","access":"public","obsolete":null}]},{"name":"BuildGLAccounts","sig":"()","named":"()","returns":"JsonObject","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":26,"named":"()","returns":"Text","kind":"procedure","access":"public","obsolete":null},{"from":27,"to":29,"named":"()","returns":"JsonObject","kind":"procedure","access":"public","obsolete":null}]},{"name":"BuildEDocumentPurchaseLines","sig":"(var Record E-Document Purchase Line, var Dictionary)","named":"(var EDocumentPurchaseLine: Record \"E-Document Purchase Line\"; var LineDictionary: Dictionary of [Integer, Text[100]])","returns":"Text","kind":"procedure","access":"public","obsolete":null,"range":"26","first":26,"last":26,"obsoleteSince":null,"spans":[{"from":26,"to":26,"named":"(var EDocumentPurchaseLine: Record \"E-Document Purchase Line\"; var LineDictionary: Dictionary of [Integer, Text[100]])","returns":"Text","kind":"procedure","access":"public","obsolete":null}]},{"name":"GetPrompt","sig":"()","named":"()","returns":"JsonObject","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"()","returns":"JsonObject","kind":"procedure","access":"public","obsolete":null}]},{"name":"Execute","sig":"(JsonObject)","named":"(Arguments: JsonObject)","returns":"Variant","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(Arguments: JsonObject)","returns":"Variant","kind":"procedure","access":"public","obsolete":null}]},{"name":"GetName","sig":"()","named":"()","returns":"Text","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"()","returns":"Text","kind":"procedure","access":"public","obsolete":null}]},{"name":"BuildContext","sig":"(Record Vendor)","named":"(Vendor: Record Vendor)","returns":"JsonObject","kind":"procedure","access":"public","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(Vendor: Record Vendor)","returns":"JsonObject","kind":"procedure","access":"public","obsolete":null}]},{"name":"GetSystemPrompt","sig":"(Text)","named":"(UserLanguage: Text)","returns":"SecretText","kind":"procedure","access":"public","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(UserLanguage: Text)","returns":"SecretText","kind":"procedure","access":"public","obsolete":null}]},{"name":"GetTools","sig":"()","named":"()","returns":"List","kind":"procedure","access":"public","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"()","returns":"List","kind":"procedure","access":"public","obsolete":null}]},{"name":"GetFeatureName","sig":"()","named":"()","returns":"Text","kind":"procedure","access":"public","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"()","returns":"Text","kind":"procedure","access":"public","obsolete":null}]}],"events":[{"name":"OnGetGLAccountMatchFunctionResponse","sig":"(Record EDoc Line Match Buffer)","named":"(TempEDocMatchLineBuffer: Record \"EDoc Line Match Buffer\" temporary)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(TempEDocMatchLineBuffer: Record \"EDoc Line Match Buffer\" temporary)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnUserMessageCreated","sig":"(Text)","named":"(UserMessageTxt: Text)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(UserMessageTxt: Text)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]}],"values":[],"controls":[],"actions":[]}}