---
title: "Codeunit 6169 E-Doc. Attachment Processor, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/6169-e-doc-attachment-processor/points/
object: https://jonas-paprotka.de/ref/codeunit/6169-e-doc-attachment-processor/
app: "E-Document Core"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/6169-e-doc-attachment-processor/source/
checked: 2026-11-20
changed: 2026-11-04
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 6169 E-Doc. Attachment Processor, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/6169-e-doc-attachment-processor/points/

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

## MoveAttachmentsAndDelete

[Line 19](https://jonas-paprotka.de/ref/codeunit/6169-e-doc-attachment-processor/source/#L19), internal.

- [26](https://jonas-paprotka.de/ref/codeunit/6169-e-doc-attachment-processor/source/#L26) calls `MoveToPurchaseDocument`
- [28](https://jonas-paprotka.de/ref/codeunit/6169-e-doc-attachment-processor/source/#L28) calls `DeleteAll`

## Insert

[Line 36](https://jonas-paprotka.de/ref/codeunit/6169-e-doc-attachment-processor/source/#L36).

- [42](https://jonas-paprotka.de/ref/codeunit/6169-e-doc-attachment-processor/source/#L42) calls [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) `SaveAttachmentFromStream`
- [44](https://jonas-paprotka.de/ref/codeunit/6169-e-doc-attachment-processor/source/#L44) validates [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) `E-Document Attachment`
- [45](https://jonas-paprotka.de/ref/codeunit/6169-e-doc-attachment-processor/source/#L45) validates [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) `E-Document Entry No.`
- [46](https://jonas-paprotka.de/ref/codeunit/6169-e-doc-attachment-processor/source/#L46) writes [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) Modify

## DeleteAll

[Line 54](https://jonas-paprotka.de/ref/codeunit/6169-e-doc-attachment-processor/source/#L54), internal.

- [71](https://jonas-paprotka.de/ref/codeunit/6169-e-doc-attachment-processor/source/#L71) writes [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) DeleteAll

## MoveToPurchaseDocument

[Line 78](https://jonas-paprotka.de/ref/codeunit/6169-e-doc-attachment-processor/source/#L78), local.

- [115](https://jonas-paprotka.de/ref/codeunit/6169-e-doc-attachment-processor/source/#L115) writes [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) Rename

## FilterEDocumentAttachmentsOnBeforeDocumentAttachmentDetailsRunModal

[Line 167](https://jonas-paprotka.de/ref/codeunit/6169-e-doc-attachment-processor/source/#L167), local.

- [176](https://jonas-paprotka.de/ref/codeunit/6169-e-doc-attachment-processor/source/#L176) calls [Page 1173 Document Attachment Details](https://jonas-paprotka.de/ref/page/1173-document-attachment-details/) `FilterForEDocuments`

## OnBeforeInsertAttachmentForEDocs

[Line 202](https://jonas-paprotka.de/ref/codeunit/6169-e-doc-attachment-processor/source/#L202), local.

- [209](https://jonas-paprotka.de/ref/codeunit/6169-e-doc-attachment-processor/source/#L209) validates [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) `E-Document Attachment`
- [210](https://jonas-paprotka.de/ref/codeunit/6169-e-doc-attachment-processor/source/#L210) validates [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) `E-Document Entry No.`

## Source

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

JOP-AL, 2026-11-20.
