---
title: "Page 6166 E-Doc. PO Copilot Prop, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/points/
object: https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/
app: "E-Document Core"
major: 29
source: https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
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/"
---

# Page 6166 E-Doc. PO Copilot Prop, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/points/

8 procedures and triggers with a step in src/Apps/W1/EDocument/App/src/Processing/OrderMatching/Copilot/EDocPOCopilotProp.Page.al, in source order, read from the text, not from a run.

## Lines matched Automatically.OnDrillDown

[Line 41](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L41), trigger.

- [44](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L44) runs [Page 6164 E-Doc. Order Match](https://jonas-paprotka.de/ref/page/6164-e-doc-order-match/)

## ProposalDetails.OnAction

[Line 125](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L125), trigger.

- [127](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L127) calls `GenerateCopilotMatchProposals`
- [129](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L129) calls `WasCopilotMatchesFound`

## OnQueryClosePage

[Line 169](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L169), trigger.

- [174](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L174) calls `PersistSuggestedMatches`
- [178](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L178) calls [Codeunit 6163 E-Doc. PO Copilot Matching](https://jonas-paprotka.de/ref/codeunit/6163-e-doc-po-copilot-matching/) `FeatureName`
- [184](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L184) calls [Codeunit 8703 Feature Telemetry](https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/) `LogUsage`
- [184](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L184) calls [Codeunit 6163 E-Doc. PO Copilot Matching](https://jonas-paprotka.de/ref/codeunit/6163-e-doc-po-copilot-matching/) `FeatureName`

## PersistSuggestedMatches

[Line 202](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L202), local.

- [205](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L205) calls [Codeunit 6164 E-Doc. Line Matching](https://jonas-paprotka.de/ref/codeunit/6164-e-doc-line-matching/) `PersistsUpdates`

## SetData

[Line 208](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L208), internal.

- [217](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L217) writes [Table 6165 E-Doc. Imported Line](https://jonas-paprotka.de/ref/table/6165-e-doc-imported-line/) Insert
- [224](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L224) writes [Table 39 Purchase Line](https://jonas-paprotka.de/ref/table/39-purchase-line/) Insert

## SumUnitCost

[Line 237](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L237), local.

- [247](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L247) calls [Codeunit 6109 E-Document Import Helper](https://jonas-paprotka.de/ref/codeunit/6109-e-document-import-helper/) `GetCurrencyRoundingPrecision`

## CombineOneToManyInBuffer

[Line 254](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L254), local.

- [273](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L273) calls [Table 6164 E-Doc. Order Match](https://jonas-paprotka.de/ref/table/6164-e-doc-order-match/) `InsertMatch`
- [282](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L282) writes [Table 6163 E-Doc. PO Match Prop. Buffer](https://jonas-paprotka.de/ref/table/6163-e-doc-po-match-prop-buffer/) Modify
- [286](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L286) writes [Table 6163 E-Doc. PO Match Prop. Buffer](https://jonas-paprotka.de/ref/table/6163-e-doc-po-match-prop-buffer/) Insert
- [290](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L290) writes [Table 6163 E-Doc. PO Match Prop. Buffer](https://jonas-paprotka.de/ref/table/6163-e-doc-po-match-prop-buffer/) DeleteAll
- [294](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L294) writes [Table 6163 E-Doc. PO Match Prop. Buffer](https://jonas-paprotka.de/ref/table/6163-e-doc-po-match-prop-buffer/) Insert

## GenerateCopilotMatchProposals

[Line 299](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L299), local.

- [307](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L307) calls [Codeunit 6164 E-Doc. Line Matching](https://jonas-paprotka.de/ref/codeunit/6164-e-doc-line-matching/) `MatchAutomatically`
- [308](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L308) calls `CountFullMatches`
- [309](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L309) calls `SumUnitCost`
- [313](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L313) calls [Codeunit 6164 E-Doc. Line Matching](https://jonas-paprotka.de/ref/codeunit/6164-e-doc-line-matching/) `FilterOutFullyMatchedLines`
- [315](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L315) calls [Codeunit 6163 E-Doc. PO Copilot Matching](https://jonas-paprotka.de/ref/codeunit/6163-e-doc-po-copilot-matching/) `SetGrounding`
- [316](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L316) calls [Codeunit 6163 E-Doc. PO Copilot Matching](https://jonas-paprotka.de/ref/codeunit/6163-e-doc-po-copilot-matching/) `MatchWithCopilot`
- [318](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L318) calls `CombineOneToManyInBuffer`
- [321](https://jonas-paprotka.de/ref/page/6166-e-doc-po-copilot-prop/source/#L321) calls [Codeunit 6163 E-Doc. PO Copilot Matching](https://jonas-paprotka.de/ref/codeunit/6163-e-doc-po-copilot-matching/) `SumUnitCostForAIMatches`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
