---
title: "Page 6167 E-Doc. Order Line Matching, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/points/
object: https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/
app: "E-Document Core"
major: 29
source: https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/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 6167 E-Doc. Order Line Matching, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/points/

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

## ApplyToPO.OnAction

[Line 78](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L78), trigger.

- [80](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L80) calls `ApplyToPurchaseOrder`

## MatchManual.OnAction

[Line 90](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L90), trigger.

- [92](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L92) calls `MatchManually`
- [93](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L93) calls `SetUserInteractions`

## MatchAutomatic.OnAction

[Line 103](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L103), trigger.

- [105](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L105) calls `MatchAutomatically`
- [106](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L106) calls `SetUserInteractions`

## RemoveMatch.OnAction

[Line 116](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L116), trigger.

- [118](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L118) calls `RemoveMatches`
- [119](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L119) calls `SetUserInteractions`

## RemoveAllMatch.OnAction

[Line 129](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L129), trigger.

- [131](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L131) calls [Codeunit 6164 E-Doc. Line Matching](https://jonas-paprotka.de/ref/codeunit/6164-e-doc-line-matching/) `RemoveAllMatches`
- [133](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L133) calls `SetUserInteractions`

## MatchCopilot.OnAction

[Line 177](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L177), trigger.

- [179](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L179) calls `SetUserInteractions`

## Show.OnAfterGetRecord

[Line 236](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L236), trigger.

- [242](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L242) calls `OpenPurchaseHeader`

## OpenPurchaseHeader

[Line 245](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L245), local.

- [250](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L250) runs [Codeunit 4144 Purchase Manual Reopen](https://jonas-paprotka.de/ref/codeunit/4144-purchase-manual-reopen/)

## ApplyToPurchaseOrder

[Line 253](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L253), local.

- [259](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L259) calls `OpenPurchaseHeader`
- [261](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L261) calls [Codeunit 6164 E-Doc. Line Matching](https://jonas-paprotka.de/ref/codeunit/6164-e-doc-line-matching/) `ApplyToPurchaseOrder`

## RemoveMatches

[Line 270](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L270), local.

- [276](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L276) calls [Codeunit 6164 E-Doc. Line Matching](https://jonas-paprotka.de/ref/codeunit/6164-e-doc-line-matching/) `FindMatchesToRemove`
- [278](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L278) calls [Codeunit 6164 E-Doc. Line Matching](https://jonas-paprotka.de/ref/codeunit/6164-e-doc-line-matching/) `PersistsUpdates`

## MatchManually

[Line 281](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L281), local.

- [290](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L290) calls [Codeunit 6164 E-Doc. Line Matching](https://jonas-paprotka.de/ref/codeunit/6164-e-doc-line-matching/) `MatchManually`
- [292](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L292) calls [Codeunit 6164 E-Doc. Line Matching](https://jonas-paprotka.de/ref/codeunit/6164-e-doc-line-matching/) `PersistsUpdates`
- [293](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L293) calls `NotifyUserIfCostDifference`

## MatchAutomatically

[Line 297](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L297), local.

- [306](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L306) calls [Codeunit 6164 E-Doc. Line Matching](https://jonas-paprotka.de/ref/codeunit/6164-e-doc-line-matching/) `AskToOverwrite`
- [307](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L307) calls [Codeunit 6164 E-Doc. Line Matching](https://jonas-paprotka.de/ref/codeunit/6164-e-doc-line-matching/) `MatchAutomatically`
- [309](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L309) calls [Codeunit 6164 E-Doc. Line Matching](https://jonas-paprotka.de/ref/codeunit/6164-e-doc-line-matching/) `PersistsUpdates`
- [310](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L310) calls `NotifyUserIfCostDifference`

## NotifyUserIfCostDifference

[Line 320](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L320), local.

- [329](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L329) calls [Table 6164 E-Doc. Order Match](https://jonas-paprotka.de/ref/table/6164-e-doc-order-match/) `GetImportedLine`
- [330](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L330) calls [Table 6164 E-Doc. Order Match](https://jonas-paprotka.de/ref/table/6164-e-doc-order-match/) `GetPurchaseLine`
- [340](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L340) calls `SendNotification`

## SetTempRecord

[Line 351](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L351), internal.

- [353](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L353) writes [Table 6121 E-Document](https://jonas-paprotka.de/ref/table/6121-e-document/) DeleteAll
- [356](https://jonas-paprotka.de/ref/page/6167-e-doc-order-line-matching/source/#L356) writes [Table 6121 E-Document](https://jonas-paprotka.de/ref/table/6121-e-document/) Insert

## Source

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

JOP-AL, 2026-11-20.
