---
title: "Codeunit 6152 E-Doc. Data Exchange Impl., extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/points/
object: https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/
app: "E-Document Core"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/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/"
---

# Codeunit 6152 E-Doc. Data Exchange Impl., extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/points/

16 procedures and triggers with a step in src/Apps/W1/EDocument/App/src/DataExchange/EDocDataExchangeImpl.Codeunit.al, in source order, read from the text, not from a run.

## Check

[Line 22](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L22).

- [33](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L33) calls [Table 37202 PEPPOL 3.0 Setup](https://jonas-paprotka.de/ref/table/37202-peppol-3-0-setup/) `GetSetup`

## Create

[Line 67](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L67).

- [98](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L98) writes [Table 1220 Data Exch.](https://jonas-paprotka.de/ref/table/1220-data-exch/) Insert(true)
- [99](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L99) raises `OnAfterDataExchangeInsert`
- [109](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L109) writes [Table 1233 Data Exch. Table Filter](https://jonas-paprotka.de/ref/table/1233-data-exch-table-filter/) Insert
- [116](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L116) calls [Codeunit 1173 Document Attachment Mgmt](https://jonas-paprotka.de/ref/codeunit/1173-document-attachment-mgmt/) `SetDocumentAttachmentFiltersForRecRef`
- [118](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L118) writes [Table 1233 Data Exch. Table Filter](https://jonas-paprotka.de/ref/table/1233-data-exch-table-filter/) Insert
- [120](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L120) raises `OnBeforeDataExchangeExport`
- [121](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L121) calls [Table 1220 Data Exch.](https://jonas-paprotka.de/ref/table/1220-data-exch/) `ExportFromDataExch`
- [123](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L123) writes [Table 1220 Data Exch.](https://jonas-paprotka.de/ref/table/1220-data-exch/) Modify(true)
- [125](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L125) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `FromFieldRef`

## GetBasicInfoFromReceivedDocument

[Line 133](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L133).

- [136](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L136) calls `FindDataExchAndDocumentType`
- [137](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L137) calls `UpdateEDocumentHeaderFields`

## GetCompleteInfoFromReceivedDocument

[Line 140](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L140).

- [142](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L142) calls `ProcessWithDataExch`

## FindDataExchAndDocumentType

[Line 146](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L146), local.

- [159](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L159) calls `DataExchDefUsesIntermediate`
- [161](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L161) calls `CreateDataExch`
- [163](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L163) calls `TryCreateIntermediate`
- [173](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L173) writes [Table 1214 Intermediate Data Import](https://jonas-paprotka.de/ref/table/1214-intermediate-data-import/) DeleteAll(true)
- [175](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L175) writes [Table 1220 Data Exch.](https://jonas-paprotka.de/ref/table/1220-data-exch/) Delete(true)

## CreateDataExch

[Line 193](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L193), local.

- [197](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L197) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `CreateInStream`
- [200](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L200) calls [Table 1220 Data Exch.](https://jonas-paprotka.de/ref/table/1220-data-exch/) `InsertRec`
- [201](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L201) writes [Table 1220 Data Exch.](https://jonas-paprotka.de/ref/table/1220-data-exch/) Modify(true)

## UpdateEDocumentHeaderFields

[Line 219](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L219), local.

- [224](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L224) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `CreateInStream`
- [226](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L226) calls `ExtractHeaderFields`

## ExtractHeaderFields

[Line 229](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L229).

- [233](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L233) calls `AddFieldToFieldBuffer`
- [234](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L234) calls `AddFieldToFieldBuffer`
- [235](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L235) calls `AddFieldToFieldBuffer`
- [236](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L236) calls `AddFieldToFieldBuffer`
- [237](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L237) calls `AddFieldToFieldBuffer`
- [238](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L238) calls `AddFieldToFieldBuffer`
- [239](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L239) calls `AddFieldToFieldBuffer`
- [240](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L240) calls `AddFieldToFieldBuffer`
- [241](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L241) calls `AddFieldToFieldBuffer`
- [242](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L242) calls `AddFieldToFieldBuffer`
- [243](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L243) calls `AddFieldToFieldBuffer`
- [244](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L244) calls `AddFieldToFieldBuffer`
- [245](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L245) calls `AddFieldToFieldBuffer`
- [250](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L250) calls `ExtractHeaderField`

## ExtractHeaderField

[Line 254](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L254), local.

- [272](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L272) calls `GetDataExchangePath`
- [275](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L275) calls [Codeunit 1203 Import XML File to Data Exch.](https://jonas-paprotka.de/ref/codeunit/1203-import-xml-file-to-data-exch/) `EscapeMissingNamespacePrefix`
- [302](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L302) calls [Codeunit 1294 OCR Service Mgt.](https://jonas-paprotka.de/ref/codeunit/1294-ocr-service-mgt/) `DateConvertYYYYMMDD2XML`

## AddFieldToFieldBuffer

[Line 317](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L317).

- [323](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L323) writes [Table 8450 Field Buffer](https://jonas-paprotka.de/ref/table/8450-field-buffer/) Insert

## GetDataExchangePath

[Line 326](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L326).

- [342](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L342) calls [Table 1227 Data Exch. Line Def](https://jonas-paprotka.de/ref/table/1227-data-exch-line-def/) `GetPath`
- [344](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L344) calls [Table 1227 Data Exch. Line Def](https://jonas-paprotka.de/ref/table/1227-data-exch-line-def/) `GetPath`
- [347](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L347) calls [Table 1227 Data Exch. Line Def](https://jonas-paprotka.de/ref/table/1227-data-exch-line-def/) `GetPath`
- [349](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L349) calls [Table 1227 Data Exch. Line Def](https://jonas-paprotka.de/ref/table/1227-data-exch-line-def/) `GetPath`
- [351](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L351) calls [Table 1227 Data Exch. Line Def](https://jonas-paprotka.de/ref/table/1227-data-exch-line-def/) `GetPath`
- [353](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L353) calls [Table 1227 Data Exch. Line Def](https://jonas-paprotka.de/ref/table/1227-data-exch-line-def/) `GetPath`
- [355](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L355) calls [Table 1227 Data Exch. Line Def](https://jonas-paprotka.de/ref/table/1227-data-exch-line-def/) `GetPath`
- [357](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L357) calls [Table 1227 Data Exch. Line Def](https://jonas-paprotka.de/ref/table/1227-data-exch-line-def/) `GetPath`
- [359](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L359) calls [Table 1227 Data Exch. Line Def](https://jonas-paprotka.de/ref/table/1227-data-exch-line-def/) `GetPath`
- [361](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L361) calls [Table 1227 Data Exch. Line Def](https://jonas-paprotka.de/ref/table/1227-data-exch-line-def/) `GetPath`
- [363](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L363) calls [Table 1227 Data Exch. Line Def](https://jonas-paprotka.de/ref/table/1227-data-exch-line-def/) `GetPath`
- [365](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L365) calls [Table 1227 Data Exch. Line Def](https://jonas-paprotka.de/ref/table/1227-data-exch-line-def/) `GetPath`
- [367](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L367) calls [Table 1227 Data Exch. Line Def](https://jonas-paprotka.de/ref/table/1227-data-exch-line-def/) `GetPath`
- [369](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L369) calls [Table 1227 Data Exch. Line Def](https://jonas-paprotka.de/ref/table/1227-data-exch-line-def/) `GetPath`

## ProcessWithDataExch

[Line 375](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L375), local.

- [382](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L382) calls `DataExchDefUsesIntermediate`
- [383](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L383) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `CreateInStream`
- [386](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L386) calls [Table 1220 Data Exch.](https://jonas-paprotka.de/ref/table/1220-data-exch/) `InsertRec`
- [388](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L388) writes [Table 1220 Data Exch.](https://jonas-paprotka.de/ref/table/1220-data-exch/) Modify(true)
- [390](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L390) calls [Table 1220 Data Exch.](https://jonas-paprotka.de/ref/table/1220-data-exch/) `ImportToDataExch`
- [393](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L393) calls [Table 1222 Data Exch. Def](https://jonas-paprotka.de/ref/table/1222-data-exch-def/) `ProcessDataExchange`
- [395](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L395) calls `ProcessIntermediateData`
- [396](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L396) calls `DeleteIntermediateData`

## ProcessIntermediateData

[Line 400](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L400), local.

- [402](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L402) calls `ProcessHeaders`

## ProcessHeaders

[Line 405](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L405), local.

- [435](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L435) calls `SetFieldValue`
- [435](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L435) calls [Table 1214 Intermediate Data Import](https://jonas-paprotka.de/ref/table/1214-intermediate-data-import/) `GetValue`
- [462](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L462) calls `SetFieldValue`
- [462](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L462) calls [Table 1214 Intermediate Data Import](https://jonas-paprotka.de/ref/table/1214-intermediate-data-import/) `GetValue`
- [478](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L478) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `CreateInStream`
- [479](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L479) calls [Codeunit 6169 E-Doc. Attachment Processor](https://jonas-paprotka.de/ref/codeunit/6169-e-doc-attachment-processor/) `Insert`
- [492](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L492) calls [Table 1214 Intermediate Data Import](https://jonas-paprotka.de/ref/table/1214-intermediate-data-import/) `GetValue`
- [493](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L493) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `CreateOutStream`
- [494](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L494) calls [Codeunit 4110 Base64 Convert](https://jonas-paprotka.de/ref/codeunit/4110-base64-convert/) `FromBase64`
- [501](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L501) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `CreateInStream`
- [502](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L502) calls [Codeunit 6169 E-Doc. Attachment Processor](https://jonas-paprotka.de/ref/codeunit/6169-e-doc-attachment-processor/) `Insert`

## DeleteIntermediateData

[Line 507](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L507), local.

- [513](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L513) writes [Table 1221 Data Exch. Field](https://jonas-paprotka.de/ref/table/1221-data-exch-field/) DeleteAll
- [515](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L515) writes [Table 1214 Intermediate Data Import](https://jonas-paprotka.de/ref/table/1214-intermediate-data-import/) DeleteAll

## SetFieldValue

[Line 518](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L518), local.

- [523](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L523) calls `TruncateValueToFieldLength`
- [524](https://jonas-paprotka.de/ref/codeunit/6152-e-doc-data-exchange-impl/source/#L524) calls [Codeunit 8617 Config. Validate Management](https://jonas-paprotka.de/ref/codeunit/8617-config-validate-management/) `EvaluateValue`

## Source

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

JOP-AL, 2026-11-20.
