---
title: "Codeunit 5503 Graph Mgt - Attachment Buffer, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/points/
object: https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/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 5503 Graph Mgt - Attachment Buffer, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/points/

59 procedures and triggers with a step in src/Layers/W1/BaseApp/Integration/Graph/GraphMgtAttachmentBuffer.Codeunit.al, in source order, read from the text, not from a run.

## LoadDocumentAttachments

[Line 61](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L61).

- [70](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L70) calls `TransferDocAttachmentToBuffer`

## TransferDocAttachmentToBuffer

[Line 74](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L74), local.

- [82](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L82) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `CreateFileNameWithExtension`
- [86](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L86) calls `ConvertDocumentTypeFromDocumentAttachment`
- [90](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L90) calls `GetDocumentAttachmentDocumentId`
- [91](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L91) writes [Table 5509 Attachment Entity Buffer](https://jonas-paprotka.de/ref/table/5509-attachment-entity-buffer/) Insert
- [95](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L95) calls [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) `ExportToStream`
- [96](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L96) writes [Table 5509 Attachment Entity Buffer](https://jonas-paprotka.de/ref/table/5509-attachment-entity-buffer/) Modify
- [99](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L99) calls [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) `HasContent`
- [100](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L100) calls [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) `GetAsTempBlob`
- [102](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L102) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `Length`
- [103](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L103) writes [Table 5509 Attachment Entity Buffer](https://jonas-paprotka.de/ref/table/5509-attachment-entity-buffer/) Modify

## GetDocumentAttachmentDocumentId

[Line 107](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L107), local.

- [126](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L126) calls [Codeunit 701 Data Type Management](https://jonas-paprotka.de/ref/codeunit/701-data-type-management/) `FindFieldByName`

## LoadAttachments

[Line 547](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L547).

- [555](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L555) writes [Table 5509 Attachment Entity Buffer](https://jonas-paprotka.de/ref/table/5509-attachment-entity-buffer/) DeleteAll
- [557](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L557) calls `IsLinkedAttachment`
- [558](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L558) calls `LoadUnlinkedAttachmentsToBuffer`
- [562](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L562) calls `FindParentDocument`
- [563](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L563) calls `FindIncomingDocument`
- [566](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L566) calls `IsGLEntry`
- [567](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L567) calls `GetGLEntryNo`
- [569](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L569) calls `GetDocumentId`
- [571](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L571) calls `LoadLinkedAttachmentsToBuffer`
- [578](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L578) writes [Table 5509 Attachment Entity Buffer](https://jonas-paprotka.de/ref/table/5509-attachment-entity-buffer/) Modify(true)

## LoadAttachmentsWithDocumentType

[Line 583](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L583).

- [591](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L591) writes [Table 5509 Attachment Entity Buffer](https://jonas-paprotka.de/ref/table/5509-attachment-entity-buffer/) DeleteAll
- [593](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L593) calls `IsLinkedAttachment`
- [594](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L594) calls `LoadUnlinkedAttachmentsToBuffer`
- [598](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L598) calls `FindParentDocumentWithDocumentTypeSafe`
- [602](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L602) calls `FindIncomingDocument`
- [605](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L605) calls `GetDocumentId`
- [607](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L607) calls `LoadLinkedAttachmentsToBuffer`
- [611](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L611) calls `IsGLEntry`
- [613](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L613) writes [Table 5509 Attachment Entity Buffer](https://jonas-paprotka.de/ref/table/5509-attachment-entity-buffer/) Modify(true)

## LoadAttachmentsWithoutDocumentType

[Line 618](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L618).

- [624](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L624) writes [Table 5509 Attachment Entity Buffer](https://jonas-paprotka.de/ref/table/5509-attachment-entity-buffer/) DeleteAll
- [626](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L626) calls `LoadAttachmentsToBuffer`
- [630](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L630) calls `IsGLEntry`
- [632](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L632) writes [Table 5509 Attachment Entity Buffer](https://jonas-paprotka.de/ref/table/5509-attachment-entity-buffer/) Modify(true)

## PropagateInsertAttachment

[Line 637](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L637).

- [641](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L641) calls `PropagateInsertLinkedAttachment`
- [643](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L643) calls `ThrowErrorIfAny`
- [644](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L644) calls `PropagateInsertUnlinkedAttachment`

## PropagateInsertAttachmentSafe

[Line 648](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L648).

- [652](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L652) calls `PropagateInsertLinkedAttachment`
- [657](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L657) calls `PropagateInsertUnlinkedAttachment`

## PropagateInsertAttachmentSafeWithDocumentType

[Line 661](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L661).

- [665](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L665) calls `PropagateInsertLinkedAttachmentWithDocumentType`
- [667](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L667) calls `PropagateInsertUnlinkedAttachment`

## PropagateInsertAttachmentSafeWithoutDocumentType

[Line 671](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L671).

- [675](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L675) calls `PropagateInsertAttachmentWithoutDocumentType`

## PropagateInsertLinkedAttachmentWithDocumentType

[Line 680](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L680), local.

- [696](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L696) calls `GetDocumentIdFilter`
- [697](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L697) calls `GetDocumentTypeFilter`
- [699](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L699) calls `IsLinkedAttachment`
- [702](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L702) calls `FindParentDocumentWithDocumentTypeSafe`
- [706](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L706) calls `VerifyCRUDIsPossibleSafe`
- [710](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L710) calls `FindOrCreateIncomingDocument`
- [714](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L714) calls `GetIncrement`
- [716](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L716) calls `GetIncrement`
- [726](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L726) calls `GetDocumentId`
- [727](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L727) calls `TransferToIncomingDocumentAttachment`
- [728](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L728) calls `FileNameToNameAndExtension`
- [739](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L739) writes [Table 133 Incoming Document Attachment](https://jonas-paprotka.de/ref/table/133-incoming-document-attachment/) Insert(true)
- [742](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L742) writes [Table 133 Incoming Document Attachment](https://jonas-paprotka.de/ref/table/133-incoming-document-attachment/) Insert(true)
- [745](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L745) calls `FindUnlinkedAttachment`
- [747](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L747) writes [Table 138 Unlinked Attachment](https://jonas-paprotka.de/ref/table/138-unlinked-attachment/) Delete(true)

## PropagateInsertAttachmentWithoutDocumentType

[Line 761](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L761), local.

- [770](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L770) calls `FileNameToNameAndExtension`
- [772](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L772) writes [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) Insert(true)
- [776](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L776) calls `GetIncrement`
- [778](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L778) calls `GetIncrement`
- [788](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L788) calls `TransferToIncomingDocumentAttachment`
- [799](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L799) writes [Table 133 Incoming Document Attachment](https://jonas-paprotka.de/ref/table/133-incoming-document-attachment/) Insert(true)
- [802](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L802) writes [Table 133 Incoming Document Attachment](https://jonas-paprotka.de/ref/table/133-incoming-document-attachment/) Insert(true)

## PropagateInsertUnlinkedAttachment

[Line 810](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L810), local.

- [819](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L819) calls `FindUnlinkedAttachment`
- [822](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L822) calls `TransferToUnlinkedAttachment`
- [825](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L825) writes [Table 138 Unlinked Attachment](https://jonas-paprotka.de/ref/table/138-unlinked-attachment/) Insert(true)
- [828](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L828) writes [Table 138 Unlinked Attachment](https://jonas-paprotka.de/ref/table/138-unlinked-attachment/) Insert(true)
- [833](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L833) calls `FindLinkedAttachment`
- [836](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L836) calls `DeleteLinkedAttachment`

## PropagateInsertLinkedAttachment

[Line 846](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L846), local.

- [862](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L862) calls `GetDocumentIdFilter`
- [863](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L863) calls `GetGLEntryNoFilter`
- [864](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L864) calls `IsLinkedAttachment`
- [864](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L864) calls `IsLinkedAttachment`
- [868](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L868) calls `FindParentDocumentSafe`
- [870](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L870) calls `FindParentDocumentSafe`
- [874](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L874) calls `VerifyCRUDIsPossibleSafe`
- [878](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L878) calls `FindOrCreateIncomingDocument`
- [882](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L882) calls `GetIncrement`
- [884](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L884) calls `GetIncrement`
- [892](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L892) calls `GetDocumentId`
- [893](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L893) calls `TransferToIncomingDocumentAttachment`
- [894](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L894) calls `FileNameToNameAndExtension`
- [904](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L904) writes [Table 133 Incoming Document Attachment](https://jonas-paprotka.de/ref/table/133-incoming-document-attachment/) Insert(true)
- [907](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L907) writes [Table 133 Incoming Document Attachment](https://jonas-paprotka.de/ref/table/133-incoming-document-attachment/) Insert(true)
- [910](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L910) calls `FindUnlinkedAttachment`
- [912](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L912) writes [Table 138 Unlinked Attachment](https://jonas-paprotka.de/ref/table/138-unlinked-attachment/) Delete(true)

## PropagateModifyAttachment

[Line 923](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L923).

- [937](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L937) calls `FindUnlinkedAttachment`
- [939](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L939) calls `TransferToUnlinkedAttachment`
- [940](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L940) writes [Table 138 Unlinked Attachment](https://jonas-paprotka.de/ref/table/138-unlinked-attachment/) Modify(true)
- [943](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L943) calls `LinkAttachmentToDocument`
- [954](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L954) calls [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) `GetRecord`
- [956](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L956) calls `VerifyCRUDIsPossible`
- [957](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L957) calls `TransferToIncomingDocumentAttachment`
- [958](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L958) calls `UnlinkAttachmentFromDocument`
- [961](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L961) calls `GetDocumentIdFilter`
- [962](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L962) calls `GetGLEntryNoFilter`
- [964](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L964) calls `FindParentDocument`
- [966](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L966) calls `FindParentDocument`
- [967](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L967) calls `FindIncomingDocument`
- [969](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L969) calls `VerifyCRUDIsPossible`
- [970](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L970) calls `TransferToIncomingDocumentAttachment`
- [971](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L971) writes [Table 133 Incoming Document Attachment](https://jonas-paprotka.de/ref/table/133-incoming-document-attachment/) Modify(true)

## PropagateModifyAttachmentWithDocumentType

[Line 979](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L979).

- [994](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L994) calls `FindUnlinkedAttachment`
- [996](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L996) calls `TransferToUnlinkedAttachment`
- [997](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L997) writes [Table 138 Unlinked Attachment](https://jonas-paprotka.de/ref/table/138-unlinked-attachment/) Modify(true)
- [1000](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1000) calls `LinkAttachmentToDocumentWithDocumentType`
- [1012](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1012) calls [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) `GetRecord`
- [1014](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1014) calls `VerifyCRUDIsPossible`
- [1015](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1015) calls `TransferToIncomingDocumentAttachment`
- [1016](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1016) calls `UnlinkAttachmentFromDocument`
- [1019](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1019) calls `GetDocumentIdFilter`
- [1020](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1020) calls `GetDocumentTypeFilter`
- [1022](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1022) calls `FindParentDocumentWithDocumentTypeSafe`
- [1026](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1026) calls `FindIncomingDocument`
- [1028](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1028) calls `VerifyCRUDIsPossible`
- [1029](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1029) calls `TransferToIncomingDocumentAttachment`
- [1030](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1030) writes [Table 133 Incoming Document Attachment](https://jonas-paprotka.de/ref/table/133-incoming-document-attachment/) Modify(true)

## PropagateModifyAttachmentWithoutDocumentType

[Line 1038](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1038).

- [1047](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1047) calls `TransferToIncomingDocumentAttachment`
- [1048](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1048) writes [Table 133 Incoming Document Attachment](https://jonas-paprotka.de/ref/table/133-incoming-document-attachment/) Modify(true)

## PropagateDeleteAttachment

[Line 1051](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1051).

- [1063](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1063) writes [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) Delete(true)
- [1067](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1067) calls `FindUnlinkedAttachment`
- [1068](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1068) writes [Table 138 Unlinked Attachment](https://jonas-paprotka.de/ref/table/138-unlinked-attachment/) Delete(true)
- [1075](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1075) calls `GetDocumentIdFilter`
- [1076](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1076) calls `GetGLEntryNoFilter`
- [1079](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1079) calls `FindParentDocument`
- [1081](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1081) calls `FindParentDocument`
- [1082](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1082) calls `FindIncomingDocument`
- [1084](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1084) calls `VerifyCRUDIsPossible`
- [1087](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1087) calls `DeleteLinkedAttachment`

## PropagateDeleteAttachmentWithDocumentType

[Line 1090](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1090).

- [1103](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1103) writes [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) Delete(true)
- [1107](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1107) calls `FindUnlinkedAttachment`
- [1108](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1108) writes [Table 138 Unlinked Attachment](https://jonas-paprotka.de/ref/table/138-unlinked-attachment/) Delete(true)
- [1116](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1116) calls `GetDocumentIdFilter`
- [1117](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1117) calls `GetDocumentTypeFilter`
- [1118](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1118) calls `FindParentDocumentWithDocumentTypeSafe`
- [1122](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1122) calls `FindIncomingDocument`
- [1125](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1125) calls `VerifyCRUDIsPossible`
- [1126](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1126) calls `DeleteLinkedAttachment`

## PropagateDeleteAttachmentWithoutDocumentType

[Line 1129](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1129).

- [1138](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1138) writes [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) Delete(true)
- [1142](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1142) calls `FindUnlinkedAttachment`
- [1143](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1143) writes [Table 138 Unlinked Attachment](https://jonas-paprotka.de/ref/table/138-unlinked-attachment/) Delete(true)
- [1153](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1153) calls `DeleteLinkedAttachment`

## DeleteLinkedAttachment

[Line 1156](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1156).

- [1168](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1168) writes [Table 133 Incoming Document Attachment](https://jonas-paprotka.de/ref/table/133-incoming-document-attachment/) Delete(true)
- [1172](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1172) writes [Table 133 Incoming Document Attachment](https://jonas-paprotka.de/ref/table/133-incoming-document-attachment/) Modify
- [1173](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1173) writes [Table 133 Incoming Document Attachment](https://jonas-paprotka.de/ref/table/133-incoming-document-attachment/) Delete(true)
- [1177](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1177) validates [Table 133 Incoming Document Attachment](https://jonas-paprotka.de/ref/table/133-incoming-document-attachment/) `Default`
- [1178](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1178) validates [Table 133 Incoming Document Attachment](https://jonas-paprotka.de/ref/table/133-incoming-document-attachment/) `Main Attachment`
- [1179](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1179) writes [Table 133 Incoming Document Attachment](https://jonas-paprotka.de/ref/table/133-incoming-document-attachment/) Modify(true)
- [1197](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1197) writes [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) Modify(true)
- [1200](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1200) writes [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) Delete(true)

## UpdateAttachments

[Line 1204](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1204).

- [1206](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1206) calls `DeleteUnusedAttachments`
- [1207](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1207) calls `LinkNewAttachmentsToDocument`

## DeleteUnusedAttachments

[Line 1210](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1210), local.

- [1215](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1215) calls `PropagateDeleteAttachment`

## InsertFromTempAttachmentEntityBufferToDocumentAttachment

[Line 1219](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1219).

- [1225](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1225) calls `HasRegisteredField`
- [1226](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1226) validates [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) `Line No.`
- [1228](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1228) calls `HasRegisteredField`
- [1229](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1229) validates [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) `File Extension`
- [1229](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1229) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `GetExtension`
- [1230](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1230) validates [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) `File Name`
- [1230](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1230) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `GetFileNameWithoutExtension`
- [1233](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1233) calls `ConvertDocumentTypeToDocumentAttachment`
- [1234](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1234) calls `SetDocumentAttachmentNo`
- [1236](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1236) calls `HasRegisteredField`
- [1237](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1237) validates [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) `Document Flow Sales`
- [1239](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1239) calls `HasRegisteredField`
- [1240](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1240) validates [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) `Document Flow Purchase`
- [1242](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1242) writes [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) Insert

## ModifyFromTempAttachmentEntityBufferToDocumentAttachment

[Line 1245](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1245).

- [1253](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1253) calls `HasRegisteredField`
- [1254](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1254) calls `ConvertDocumentTypeToDocumentAttachment`
- [1258](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1258) calls `HasRegisteredField`
- [1259](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1259) calls `SetDocumentAttachmentNo`
- [1263](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1263) calls `HasRegisteredField`
- [1269](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1269) writes [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) Rename
- [1273](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1273) calls `HasRegisteredField`
- [1274](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1274) validates [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) `Document Flow Sales`
- [1278](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1278) calls `HasRegisteredField`
- [1279](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1279) validates [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) `Document Flow Purchase`
- [1283](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1283) calls `HasRegisteredField`
- [1284](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1284) validates [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) `File Extension`
- [1284](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1284) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `GetExtension`
- [1285](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1285) validates [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) `File Name`
- [1285](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1285) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `GetFileNameWithoutExtension`
- [1290](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1290) writes [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) Modify(true)

## SetDocumentAttachmentNo

[Line 1293](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1293).

- [1337](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1337) calls [Codeunit 701 Data Type Management](https://jonas-paprotka.de/ref/codeunit/701-data-type-management/) `FindFieldByName`

## LinkNewAttachmentsToDocument

[Line 1342](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1342), local.

- [1355](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1355) calls `FindUnlinkedAttachment`
- [1359](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1359) calls `LinkAttachmentToDocument`
- [1361](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1361) calls `FindLinkedAttachment`
- [1365](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1365) writes [Table 5509 Attachment Entity Buffer](https://jonas-paprotka.de/ref/table/5509-attachment-entity-buffer/) Modify(true)
- [1366](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1366) calls `CopyAttachment`
- [1368](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1368) calls `NameAndExtensionToFileName`
- [1370](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1370) calls `LinkAttachmentToDocument`
- [1373](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1373) calls `CopyAttachment`
- [1376](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1376) calls `LinkAttachmentToDocument`
- [1381](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1381) calls `FindLinkedAttachment`
- [1382](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1382) calls `FileNameToNameAndExtension`
- [1383](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1383) writes [Table 133 Incoming Document Attachment](https://jonas-paprotka.de/ref/table/133-incoming-document-attachment/) Modify(true)

## LinkAttachmentToDocument

[Line 1388](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1388), local.

- [1397](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1397) calls `TransferFromUnlinkedAttachment`
- [1400](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1400) calls `RegisterFieldSet`
- [1401](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1401) calls `RegisterFieldSet`
- [1402](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1402) calls `RegisterFieldSet`
- [1403](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1403) calls `PropagateInsertLinkedAttachment`

## LinkAttachmentToDocumentWithDocumentType

[Line 1406](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1406), local.

- [1415](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1415) calls `TransferFromUnlinkedAttachment`
- [1419](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1419) calls `RegisterFieldSet`
- [1420](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1420) calls `RegisterFieldSet`
- [1421](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1421) calls `RegisterFieldSet`
- [1422](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1422) calls `PropagateInsertLinkedAttachmentWithDocumentType`

## UnlinkAttachmentFromDocument

[Line 1425](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1425), local.

- [1430](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1430) calls `TransferFromIncomingDocumentAttachment`
- [1431](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1431) calls `RegisterFieldSet`
- [1432](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1432) calls `RegisterFieldSet`
- [1433](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1433) calls `RegisterFieldSet`
- [1434](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1434) calls `PropagateInsertUnlinkedAttachment`

## CopyAttachment

[Line 1437](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1437).

- [1441](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1441) writes [Table 138 Unlinked Attachment](https://jonas-paprotka.de/ref/table/138-unlinked-attachment/) Insert(true)

## RegisterFieldSet

[Line 1444](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1444).

- [1456](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1456) writes [Table 8450 Field Buffer](https://jonas-paprotka.de/ref/table/8450-field-buffer/) Insert

## IsSalesInvoice

[Line 1522](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1522), local.

- [1529](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1529) calls `GetDocumentType`

## IsPurchaseInvoice

[Line 1535](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1535), local.

- [1542](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1542) calls `GetDocumentType`

## IsSalesQuote

[Line 1548](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1548), local.

- [1552](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1552) calls `GetDocumentType`

## IsSalesOrder

[Line 1556](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1556), local.

- [1560](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1560) calls `GetDocumentType`

## IsPurchaseOrder

[Line 1564](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1564), local.

- [1568](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1568) calls `GetDocumentType`

## IsSalesCreditMemo

[Line 1572](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1572), local.

- [1576](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1576) calls `GetDocumentType`

## IsPurchaseCreditMemo

[Line 1580](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1580), local.

- [1584](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1584) calls `GetDocumentType`

## GetDocumentId

[Line 1667](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1667), local.

- [1683](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1683) calls [Codeunit 5477 Sales Invoice Aggregator](https://jonas-paprotka.de/ref/codeunit/5477-sales-invoice-aggregator/) `GetSalesInvoiceHeaderId`
- [1688](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1688) calls [Codeunit 5508 Graph Mgt - Sal. Cr. Memo Buf.](https://jonas-paprotka.de/ref/codeunit/5508-graph-mgt-sal-cr-memo-buf/) `GetSalesCrMemoHeaderId`
- [1693](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1693) calls [Codeunit 5529 Purch. Inv. Aggregator](https://jonas-paprotka.de/ref/codeunit/5529-purch-inv-aggregator/) `GetPurchaseInvoiceHeaderId`
- [1703](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1703) calls [Codeunit 5511 Graph Mgt - Purch. Cr. Memo](https://jonas-paprotka.de/ref/codeunit/5511-graph-mgt-purch-cr-memo/) `GetPurchaseCrMemoHeaderId`

## GetGLEntryNo

[Line 1711](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1711), local.

- [1718](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1718) calls [Codeunit 701 Data Type Management](https://jonas-paprotka.de/ref/codeunit/701-data-type-management/) `FindFieldByName`

## GetDocumentIdFromAttachmentId

[Line 1723](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1723).

- [1736](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1736) calls [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) `GetRecord`
- [1741](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1741) calls `GetDocumentId`

## VerifyCRUDIsPossibleSafe

[Line 1802](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1802), local.

- [1822](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1822) calls `GetDocumentId`
- [1824](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1824) calls `IsGeneralJournalLine`
- [1833](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1833) calls `IsGLEntry`
- [1836](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1836) calls `IsGLEntry`
- [1844](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1844) calls `IsSalesInvoice`
- [1856](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1856) calls `IsPurchaseInvoice`
- [1868](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1868) calls `IsSalesQuote`
- [1880](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1880) calls `IsSalesOrder`
- [1892](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1892) calls `IsSalesCreditMemo`
- [1904](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1904) calls `IsPurchaseOrder`
- [1916](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1916) calls `IsPurchaseCreditMemo`

## VerifyCRUDIsPossible

[Line 1931](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1931), local.

- [1935](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1935) calls `VerifyCRUDIsPossibleSafe`
- [1936](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1936) calls `ThrowErrorIfAny`

## FindParentDocumentSafe

[Line 1950](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1950), local.

- [1971](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1971) calls [Codeunit 10 Type Helper](https://jonas-paprotka.de/ref/codeunit/10-type-helper/) `Evaluate`
- [1991](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L1991) calls [Codeunit 5477 Sales Invoice Aggregator](https://jonas-paprotka.de/ref/codeunit/5477-sales-invoice-aggregator/) `GetSalesInvoiceHeaderFromId`
- [2002](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2002) calls [Codeunit 5529 Purch. Inv. Aggregator](https://jonas-paprotka.de/ref/codeunit/5529-purch-inv-aggregator/) `GetPurchaseInvoiceHeaderFromId`

## FindParentDocument

[Line 2010](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2010), local.

- [2014](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2014) calls `FindParentDocumentSafe`
- [2015](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2015) calls `ThrowErrorIfAny`

## FindParentDocumentWithDocumentTypeSafe

[Line 2018](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2018), local.

- [2083](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2083) calls [Codeunit 5477 Sales Invoice Aggregator](https://jonas-paprotka.de/ref/codeunit/5477-sales-invoice-aggregator/) `GetSalesInvoiceHeaderFromId`
- [2095](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2095) calls [Codeunit 5508 Graph Mgt - Sal. Cr. Memo Buf.](https://jonas-paprotka.de/ref/codeunit/5508-graph-mgt-sal-cr-memo-buf/) `GetSalesCrMemoHeaderFromId`
- [2107](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2107) calls [Codeunit 5529 Purch. Inv. Aggregator](https://jonas-paprotka.de/ref/codeunit/5529-purch-inv-aggregator/) `GetPurchaseInvoiceHeaderFromId`
- [2125](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2125) calls [Codeunit 5511 Graph Mgt - Purch. Cr. Memo](https://jonas-paprotka.de/ref/codeunit/5511-graph-mgt-purch-cr-memo/) `GetPurchaseCrMemoHeaderFromId`

## FindIncomingDocument

[Line 2251](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2251), local.

- [2253](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2253) calls `IsPostedDocument`
- [2253](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2253) calls `IsGLEntry`
- [2254](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2254) calls [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) `FindByDocumentNoAndPostingDate`
- [2255](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2255) calls [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) `FindFromIncomingDocumentEntryNo`

## FindOrCreateIncomingDocument

[Line 2258](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2258), local.

- [2269](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2269) calls `FindIncomingDocument`
- [2275](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2275) calls `IsSalesInvoice`
- [2275](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2275) calls `IsPostedDocument`
- [2284](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2284) writes [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) Insert(true)
- [2288](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2288) calls `IsGeneralJournalLine`
- [2292](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2292) writes [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) Insert(true)
- [2294](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2294) writes [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) Modify
- [2299](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2299) calls `IsGLEntry`
- [2306](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2306) writes [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) Insert(true)
- [2318](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2318) writes [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) Insert(true)
- [2320](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2320) writes [Table 36 Sales Header](https://jonas-paprotka.de/ref/table/36-sales-header/) Modify
- [2324](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2324) calls `IsPurchaseInvoice`
- [2324](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2324) calls `IsPostedDocument`
- [2333](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2333) writes [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) Insert(true)
- [2345](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2345) writes [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) Insert(true)
- [2347](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2347) writes [Table 38 Purchase Header](https://jonas-paprotka.de/ref/table/38-purchase-header/) Modify
- [2351](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2351) calls `IsSalesCreditMemo`
- [2351](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2351) calls `IsPostedDocument`
- [2360](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2360) writes [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) Insert(true)
- [2364](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2364) calls `IsPurchaseCreditMemo`
- [2364](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2364) calls `IsPostedDocument`
- [2373](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2373) writes [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) Insert(true)

## LoadLinkedAttachmentsToBuffer

[Line 2378](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2378), local.

- [2395](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2395) calls `TransferFromIncomingDocumentAttachment`
- [2398](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2398) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `FromRecord`
- [2399](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2399) calls `GetContentLength`
- [2400](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2400) writes [Table 5509 Attachment Entity Buffer](https://jonas-paprotka.de/ref/table/5509-attachment-entity-buffer/) Modify(true)

## LoadAttachmentsToBuffer

[Line 2404](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2404), local.

- [2420](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2420) calls `AttachmentLoadUpperLimit`
- [2421](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2421) calls `AttachmentLoadUpperLimit`
- [2425](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2425) calls `TransferFromIncomingDocumentAttachment`
- [2429](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2429) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `FromRecord`
- [2430](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2430) calls `GetContentLength`
- [2431](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2431) writes [Table 5509 Attachment Entity Buffer](https://jonas-paprotka.de/ref/table/5509-attachment-entity-buffer/) Modify(true)

## LoadUnlinkedAttachmentsToBuffer

[Line 2440](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2440), local.

- [2457](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2457) calls `TransferFromUnlinkedAttachment`
- [2460](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2460) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `FromRecord`
- [2461](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2461) calls `GetContentLength`
- [2462](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2462) writes [Table 5509 Attachment Entity Buffer](https://jonas-paprotka.de/ref/table/5509-attachment-entity-buffer/) Modify(true)

## TransferToIncomingDocumentAttachment

[Line 2466](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2466), local.

- [2476](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2476) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `FromRecord`
- [2477](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2477) calls `GetContentLength`
- [2482](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2482) calls `FileNameToNameAndExtension`
- [2484](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2484) calls [Codeunit 10 Type Helper](https://jonas-paprotka.de/ref/codeunit/10-type-helper/) `TransferFieldsWithValidate`
- [2487](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2487) validates [Table 133 Incoming Document Attachment](https://jonas-paprotka.de/ref/table/133-incoming-document-attachment/) `Name`
- [2488](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2488) validates [Table 133 Incoming Document Attachment](https://jonas-paprotka.de/ref/table/133-incoming-document-attachment/) `File Extension`

## TransferToUnlinkedAttachment

[Line 2492](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2492), local.

- [2500](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2500) calls [Codeunit 10 Type Helper](https://jonas-paprotka.de/ref/codeunit/10-type-helper/) `TransferFieldsWithValidate`

## TransferFromIncomingDocumentAttachment

[Line 2504](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2504).

- [2509](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2509) calls `NameAndExtensionToFileName`
- [2511](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2511) calls `TransferDocumentTypeFromIncomingDocument`
- [2512](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2512) writes [Table 5509 Attachment Entity Buffer](https://jonas-paprotka.de/ref/table/5509-attachment-entity-buffer/) Insert(true)

## TransferFromIncomingDocumentAttachment

[Line 2515](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2515), local.

- [2521](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2521) calls `NameAndExtensionToFileName`
- [2523](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2523) calls `TransferDocumentTypeFromIncomingDocument`
- [2524](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2524) writes [Table 5509 Attachment Entity Buffer](https://jonas-paprotka.de/ref/table/5509-attachment-entity-buffer/) Insert(true)

## TransferFromUnlinkedAttachment

[Line 2527](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2527).

- [2533](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2533) writes [Table 5509 Attachment Entity Buffer](https://jonas-paprotka.de/ref/table/5509-attachment-entity-buffer/) Insert(true)

## GetContentLength

[Line 2537](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2537).

- [2541](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2541) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `HasValue`
- [2543](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2543) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `CreateInStream`

## FileNameToNameAndExtension

[Line 2566](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2566), local.

- [2570](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2570) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `GetExtension`
- [2571](https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/#L2571) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `GetFileNameWithoutExtension`

## Source

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

JOP-AL, 2026-11-20.
