{"title":"Page 6166 E-Doc. PO Copilot Prop, extension points 29","url":"https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/points/","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","object":{"type":"page","id":6166,"name":"E-Doc. PO Copilot Prop","app":"E-Document Core","url":"https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/","path":"src/Apps/W1/EDocument/App/src/Processing/OrderMatching/Copilot/EDocPOCopilotProp.Page.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"page:6164":{"name":"E-Doc. Order Match","url":"https://jonas-paprotka.de/ref/page/6164-e-doc-order-match/"},"codeunit:6163":{"name":"E-Doc. PO Copilot Matching","url":"https://jonas-paprotka.de/ref/codeunit/6163-e-doc-po-copilot-matching/"},"codeunit:8703":{"name":"Feature Telemetry","url":"https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/"},"codeunit:6164":{"name":"E-Doc. Line Matching","url":"https://jonas-paprotka.de/ref/codeunit/6164-e-doc-line-matching/"},"table:6165":{"name":"E-Doc. Imported Line","url":"https://jonas-paprotka.de/ref/table/6165-e-doc-imported-line/"},"table:39":{"name":"Purchase Line","url":"https://jonas-paprotka.de/ref/table/39-purchase-line/"},"codeunit:6109":{"name":"E-Document Import Helper","url":"https://jonas-paprotka.de/ref/codeunit/6109-e-document-import-helper/"},"table:6164":{"name":"E-Doc. Order Match","url":"https://jonas-paprotka.de/ref/table/6164-e-doc-order-match/"},"table:6163":{"name":"E-Doc. PO Match Prop. Buffer","url":"https://jonas-paprotka.de/ref/table/6163-e-doc-po-match-prop-buffer/"}},"procs":[{"name":"Lines matched Automatically.OnDrillDown","line":41,"kind":"trigger","steps":[[44,"run","page",6164]]},{"name":"ProposalDetails.OnAction","line":125,"kind":"trigger","steps":[[127,"call","GenerateCopilotMatchProposals",0],[129,"call","WasCopilotMatchesFound",0]]},{"name":"OnQueryClosePage","line":169,"kind":"trigger","steps":[[174,"call","PersistSuggestedMatches",0],[178,"ext","codeunit",6163,"FeatureName",0],[184,"ext","codeunit",8703,"LogUsage",4],[184,"ext","codeunit",6163,"FeatureName",0]]},{"name":"PersistSuggestedMatches","line":202,"kind":"procedure","access":"local","params":0,"steps":[[205,"ext","codeunit",6164,"PersistsUpdates",2]]},{"name":"SetData","line":208,"kind":"procedure","access":"internal","params":3,"steps":[[217,"write",6165,"Insert"],[224,"write",39,"Insert"]]},{"name":"SumUnitCost","line":237,"kind":"procedure","access":"local","params":1,"steps":[[247,"ext","codeunit",6109,"GetCurrencyRoundingPrecision",1]]},{"name":"CombineOneToManyInBuffer","line":254,"kind":"procedure","access":"local","params":2,"steps":[[273,"ext","table",6164,"InsertMatch",2],[282,"write",6163,"Modify"],[286,"write",6163,"Insert"],[290,"write",6163,"DeleteAll"],[294,"write",6163,"Insert"]]},{"name":"GenerateCopilotMatchProposals","line":299,"kind":"procedure","access":"local","params":0,"steps":[[307,"ext","codeunit",6164,"MatchAutomatically",4],[308,"call","CountFullMatches",1],[309,"call","SumUnitCost",1],[313,"ext","codeunit",6164,"FilterOutFullyMatchedLines",2],[315,"ext","codeunit",6163,"SetGrounding",1],[316,"ext","codeunit",6163,"MatchWithCopilot",3],[318,"call","CombineOneToManyInBuffer",2],[321,"ext","codeunit",6163,"SumUnitCostForAIMatches",1]]}]}