Codeunit 1173 "Document Attachment Mgmt"
Base Application · Microsoft.Foundation.Attachment
Across versions
- BC23present
- BC2438 procedures added, 2 procedures removed
- BC2532 procedures removed, 14 events added
- BC263 procedures added, 1 procedures changed
- BC272 procedures removed, 2 events added
- BC28unchanged
- BC293 procedures added, 1 events added
- BC30unchanged
Neighbourhood 28 connected objects and pages
Base Application · Microsoft.Foundation.Attachment · BC23-30 · source at ea08af5e · facts from BC29
Events published
OnAfterSetDocumentAttachmentFiltersForRecRef(var DocumentAttachment: Record "Document Attachment"; RecRef: RecordRef)(integration)- subscribers: Codeunit 20414 “Qlty. Attachment Integration” HandleOnAfterSetDocumentAttachmentFiltersForRecRef, Codeunit 6169 “E-Doc. Attachment Processor” OnAfterSetDocumentAttachmentFiltersForRecRef
OnBeforeCopyAttachmentsForPostedDocsLines(var FromRecRef: RecordRef; var ToRecRef: RecordRef; var IsHandled: Boolean)(integration)OnBeforeSetDocumentTypeForPostedDocument(var DocumentAttachment: Record "Document Attachment"; PostedDocumentTableID: Integer; var IsHandled: Boolean)+ BC29 (integration)- subscribers: Codeunit 6459 “Serv. Document Attachment Mgt.” OnBeforeSetDocumentTypeForPostedDocument
OnBeforeDeleteAttachedDocumentsWithConfirm(RecRef: RecordRef; var IsHandled: Boolean)(integration)OnBeforeDocAttachForPostedPurchaseDocs(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var IsHandled: Boolean)+ BC27 − BC27 (integration)OnBeforeDocAttachForPostedSalesDocs(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var IsHandled: Boolean)(integration)- subscribers: Codeunit 8001 “Sub. Contr. Renewal Subcribers” SkipDocumentAttachmentForContractRenewalLines
OnCopyAttachmentsForPostedDocsOnBeforeToDocumentAttachmentInsert(var FromDocumentAttachment: Record "Document Attachment"; var ToDocumentAttachment: Record "Document Attachment")(integration)OnCopyAttachmentsForPostedDocsOnAfterToDocumentAttachmentInsert(var FromDocumentAttachment: Record "Document Attachment"; var ToDocumentAttachment: Record "Document Attachment")(integration)OnIsDuplicateFileOnAfterSetFilters(var DocumentAttachment: Record "Document Attachment")(integration)OnAfterTableHasNumberFieldPrimaryKey(TableNo: Integer; var Result: Boolean; var FieldNo: Integer)(integration)- subscribers: Codeunit 20414 “Qlty. Attachment Integration” HandleOnAfterTableHasNumberFieldPrimaryKey, Codeunit 6169 “E-Doc. Attachment Processor” OnAfterTableHasNumberFieldPrimaryKeyForEDocs, Codeunit 6459 “Serv. Document Attachment Mgt.” OnAfterTableHasNumberFieldPrimaryKey, Codeunit 6989 “Expense Attachment Mgt.” OnAfterTableHasNumberFieldPrimaryKey, Codeunit 99000783 “Prod. Document Attachment Mgt.” OnAfterTableHasNumberFieldPrimaryKey
OnAfterTableHasDocTypePrimaryKey(TableNo: Integer; var Result: Boolean; var FieldNo: Integer)(integration)- subscribers: Codeunit 6459 “Serv. Document Attachment Mgt.” OnAfterTableHasDocTypePrimaryKey, Codeunit 99000783 “Prod. Document Attachment Mgt.” OnAfterTableHasDocTypePrimaryKey
OnAfterTableHasLineNumberPrimaryKey(TableNo: Integer; var Result: Boolean; var FieldNo: Integer)(integration)- subscribers: Codeunit 20414 “Qlty. Attachment Integration” HandleOnAfterTableHasLineNumberPrimaryKey, Codeunit 6459 “Serv. Document Attachment Mgt.” OnAfterTableHasLineNumberPrimaryKey, Codeunit 6989 “Expense Attachment Mgt.” OnAfterTableHasLineNumberPrimaryKey, Codeunit 99000783 “Prod. Document Attachment Mgt.” OnAfterTableHasLineNumberPrimaryKey
OnAfterSetDocumentAttachmentFiltersForRecRefInternal(var DocumentAttachment: Record "Document Attachment"; RecordRef: RecordRef; GetRelatedAttachments: Boolean)(integration)- subscribers: Codeunit 6989 “Expense Attachment Mgt.” OnAfterSetDocumentAttachmentFiltersForRecRefInternal
OnSetRelatedAttachmentsFilterOnBeforeSetTableIdFilter(TableNo: Integer; var RelatedTable: Integer)(integration)- subscribers: Codeunit 6459 “Serv. Document Attachment Mgt.” OnSetRelatedAttachmentsFilterOnBeforeSetTableIdFilter
OnBeforeCopyAttachments(var FromRecRef: RecordRef; var ToRecRef: RecordRef; var Handled: Boolean)+ BC24 (integration)OnAfterGetRefTable(var RecRef: RecordRef; DocumentAttachment: Record "Document Attachment")+ BC25 (integration)- subscribers: Codeunit 20414 “Qlty. Attachment Integration” HandleOnAfterGetRefTable, Codeunit 6169 “E-Doc. Attachment Processor” OnAfterGetRefTableForEDocs, Codeunit 6459 “Serv. Document Attachment Mgt.” OnAfterGetRefTable, Codeunit 6989 “Expense Attachment Mgt.” OnAfterGetRefTable, Codeunit 8059 “Sub. Contracts General Mgt.” SetServiceObjectAsRecRef, Codeunit 99000783 “Prod. Document Attachment Mgt.” OnAfterGetRefTable
OnAfterIsFlowFieldsEditable(TableNo: Integer; var Editable: Boolean)+ BC25 (integration)- subscribers: Codeunit 20578 “Subc. Attachment Details Ext.” OnAfterIsFlowFieldsEditable
OnAfterTableIsDocument(TableNo: Integer; var IsDocument: Boolean)+ BC25 (integration)- subscribers: Codeunit 6459 “Serv. Document Attachment Mgt.” OnAfterIsTableDocument, Codeunit 99000783 “Prod. Document Attachment Mgt.” OnAfterIsTableDocument
OnCopyAttachmentsOnAfterSetFromParameters(FromRecRef: RecordRef; var FromDocumentAttachment: Record "Document Attachment"; var FromAttachmentDocumentType: Enum "Attachment Document Type")+ BC25 (integration)- subscribers: Codeunit 6169 “E-Doc. Attachment Processor” OnCopyAttachmentsOnAfterSetFromParameters, Codeunit 6459 “Serv. Document Attachment Mgt.” OnCopyAttachmentsOnAfterSetFromParameters, Codeunit 6989 “Expense Attachment Mgt.” OnCopyAttachmentsOnAfterSetFromParameters, Codeunit 99000783 “Prod. Document Attachment Mgt.” OnCopyAttachmentsOnAfterSetFromParameters
OnCopyAttachmentsOnAfterSetDocumentFlowFilter(var FromDocumentAttachment: Record "Document Attachment"; FromRecRef: RecordRef; ToRecRef: RecordRef)+ BC25 (integration)- subscribers: Codeunit 6459 “Serv. Document Attachment Mgt.” OnCopyAttachmentsOnAfterSetDocumentFlowFilter, Codeunit 99000783 “Prod. Document Attachment Mgt.” OnCopyAttachmentsOnAfterSetDocumentFlowFilter
OnCopyAttachmentsOnAfterSetToParameters(var ToDocumentAttachment: Record "Document Attachment"; ToRecRef: RecordRef; var ToFieldRef: FieldRef; var ToNo: Code[20]; var ToLineNo: Integer; var ToAttachmentDocumentType: Enum "Attachment Document Type")+ BC25 (integration)- subscribers: Codeunit 6459 “Serv. Document Attachment Mgt.” OnCopyAttachmentsOnAfterSetToParameters, Codeunit 6989 “Expense Attachment Mgt.” OnCopyAttachmentsOnAfterSetToParameters, Codeunit 99000783 “Prod. Document Attachment Mgt.” OnCopyAttachmentsOnAfterSetToParameters
OnCopyAttachmentsOnAfterSetToDocumentFilters(var ToDocumentAttachment: Record "Document Attachment"; ToRecRef: RecordRef; ToAttachmentDocumentType: Enum "Attachment Document Type"; ToNo: Code[20]; ToLineNo: Integer)+ BC25 (integration)- subscribers: Codeunit 6459 “Serv. Document Attachment Mgt.” OnCopyAttachmentsOnAfterSetToDocumentFilters, Codeunit 6989 “Expense Attachment Mgt.” OnCopyAttachmentsOnAfterSetToDocumentFilters, Codeunit 8751 “DA External Storage Impl.” Document Attachment Mgmt_OnCopyAttachmentsOnAfterSetToDocumentFilters, Codeunit 99000783 “Prod. Document Attachment Mgt.” OnCopyAttachmentsOnAfterSetToDocumentFilters
OnAfterTableIsDocumentHeader(TableNo: Integer; var IsHeader: Boolean)+ BC25 (integration)- subscribers: Codeunit 6459 “Serv. Document Attachment Mgt.” OnAfterTableIsDocumentHeader
OnAfterTableIsDocumentLine(TableNo: Integer; var IsLine: Boolean)+ BC25 (integration)- subscribers: Codeunit 6459 “Serv. Document Attachment Mgt.” OnAfterTableIsDocumentLine
OnAfterTableIsEntity(TableNo: Integer; var IsEntity: Boolean)+ BC25 (integration)- subscribers: Codeunit 6459 “Serv. Document Attachment Mgt.” OnAfterTableIsEntity
OnCopyAttachmentsForPostedDocsLinesOnAfterSetFromFilters(FromRecRef: RecordRef; var FromDocumentAttachmentLine: Record "Document Attachment")+ BC25 (integration)- subscribers: Codeunit 6459 “Serv. Document Attachment Mgt.” OnCopyAttachmentsForPostedDocsLinesOnAfterSetFromFilters
OnCopyAttachmentsForPostedDocsLinesOnAfterSetToTableID(ToRecRef: RecordRef; var ToDocumentAttachmentLine: Record "Document Attachment")+ BC25 (integration)- subscribers: Codeunit 6459 “Serv. Document Attachment Mgt.” OnCopyAttachmentsForPostedDocsLinesOnAfterSetToTableID
OnAfterTransformAttachmentDocumentTypeValue(TableNo: Integer; var AttachmentDocumentType: Enum "Attachment Document Type")+ BC25 (integration)- subscribers: Codeunit 6459 “Serv. Document Attachment Mgt.” OnAfterTransformAttachmentDocumentTypeValue, Codeunit 99000783 “Prod. Document Attachment Mgt.” OnAfterTransformAttachmentDocumentTypeValue
OnAfterIsServiceDocumentFlow(TableNo: Integer; var IsDocumentFlow: Boolean)+ BC25 (integration)- subscribers: Codeunit 6459 “Serv. Document Attachment Mgt.” OnAfterIsServiceDocumentFlow
OnAfterIsProductionDocumentFlow(TableNo: Integer; var IsDocumentFlow: Boolean)+ BC26 (integration)- subscribers: Codeunit 99000783 “Prod. Document Attachment Mgt.” OnAfterIsProductionDocumentFlow
OnMoveAttachmentsWithinSameRecordTypeOnBeforeInsert(var DocumentAttachmentToCreate: Record "Document Attachment"; MoveToRecRef: RecordRef; MoveToRecNo: Code[20])+ BC27 (integration)
Event subscriptions
- DeleteAttachedDocumentsOnAfterDeleteCustomer subscribes to Table “Customer” OnAfterDeleteEvent
- DeleteAttachedDocumentsOnAfterDeleteSalesHeader subscribes to Table “Sales Header” OnAfterDeleteEvent
- DeleteAttachedDocumentsOnAfterDeleteSalesLine subscribes to Table “Sales Line” OnAfterDeleteEvent
- DeleteAttachedDocumentsOnAfterDeleteSalesCreditMemoHeader subscribes to Table “Sales Cr.Memo Header” OnAfterDeleteEvent
- DeleteAttachedDocumentsOnAfterDeleteSalesCreditMemoLine subscribes to Table “Sales Cr.Memo Line” OnAfterDeleteEvent
- DeleteAttachedDocumentsOnAfterDeleteSalesInvoiceHeader subscribes to Table “Sales Invoice Header” OnAfterDeleteEvent
- DeleteAttachedDocumentsOnAfterDeleteSalesInvoiceLine subscribes to Table “Sales Invoice Line” OnAfterDeleteEvent
- DeleteAttachedDocumentsOnAfterDeletePurchInvHeader subscribes to Table “Purch. Inv. Header” OnAfterDeleteEvent
- DeleteAttachedDocumentsOnAfterDeletePurchInvLine subscribes to Table “Purch. Inv. Line” OnAfterDeleteEvent
- DeleteAttachedDocumentsOnAfterDeletePurchCreditMemoHeader subscribes to Table “Purch. Cr. Memo Hdr.” OnAfterDeleteEvent
- DeleteAttachedDocumentsOnAfterDeletePurchCreditMemoLine subscribes to Table “Purch. Cr. Memo Line” OnAfterDeleteEvent
- DocAttachFlowFromSalesQuoteToSalesOrder subscribes to Codeunit “Sales-Quote to Order” OnBeforeDeleteSalesQuote
- DocAttachFlowForSalesHeaderFromBlanketOrderToSalesOrder subscribes to Codeunit “Blanket Sales Order to Order” OnBeforeInsertSalesOrderHeader
- DocAttachFlowForSalesLinesFromBlanketOrderToSalesOrder subscribes to Codeunit “Blanket Sales Order to Order” OnAfterInsertSalesOrderLine
- DocAttachFlowForSalesHeaderFromSalesQuoteToSalesInvoice subscribes to Codeunit “Sales-Quote to Invoice” OnBeforeDeletionOfQuote
- DocAttachFlowForSalesLinesFromSalesQuoteToSalesInvoice subscribes to Codeunit “Sales-Quote to Invoice” OnBeforeInsertSalesInvoiceLine
- DocAttachFlowForSalesHeaderInsert subscribes to Table “Sales Header” OnAfterInsertEvent
- DocAttachFlowForSalesQuoteToSalesOrderSalesLines subscribes to Codeunit “Sales-Quote to Order” OnAfterInsertSalesOrderLine
- DocAttachFlowForSalesHeaderCustomerChg subscribes to Table “Sales Header” OnAfterValidateEvent (Sell-to Customer No.)
- DocAttachFlowForCopyDocumentSalesHeader subscribes to Codeunit “Copy Document Mgt.” OnAfterCopySalesHeader
- DocAttachFlowForSalesLineInsert subscribes to Table “Sales Line” OnAfterInsertEvent
- DocAttachFlowForSalesLineItemChg subscribes to Table “Sales Line” OnAfterValidateEvent (No.)
- DocAttachForPostedSalesDocs subscribes to Codeunit “Sales-Post” OnBeforeDeleteAfterPosting
- DocAttachForPostedPurchaseDocs subscribes to Codeunit “Purch.-Post” OnBeforeDeleteAfterPosting
- DeleteAttachedDocumentsOnAfterDeleteVendor subscribes to Table “Vendor” OnAfterDeleteEvent
- DeleteAttachedDocumentsOnAfterDeletePurchaseHeader subscribes to Table “Purchase Header” OnAfterDeleteEvent
- DeleteAttachedDocumentsOnAfterDeletePurchaseLine subscribes to Table “Purchase Line” OnAfterDeleteEvent
- DocAttachFlowForPurchaseHeaderInsert subscribes to Table “Purchase Header” OnAfterInsertEvent
- DocAttachFlowForPurchaseHeaderVendorChange subscribes to Table “Purchase Header” OnAfterValidateEvent (Buy-from Vendor No.)
- DocAttachFlowForCopyDocumentPurchHeader subscribes to Codeunit “Copy Document Mgt.” OnAfterCopyPurchaseHeader
- DocAttachFlowForPurchaseLineInsert subscribes to Table “Purchase Line” OnAfterInsertEvent
- DocAttachFlowForPurchaseLineItemChg subscribes to Table “Purchase Line” OnAfterValidateEvent (No.)
- DocAttachFlowForPurchQuoteToPurchOrder subscribes to Codeunit “Purch.-Quote to Order” OnBeforeDeletePurchQuote
- DocAttachFlowForPurchQuoteToPurchOrderLines subscribes to Codeunit “Purch.-Quote to Order” OnAfterInsertPurchOrderLine
- DocAttachFlowForBlanketPurchaseHeader subscribes to Codeunit “Blanket Purch. Order to Order” OnBeforePurchOrderHeaderModify
- DocAttachFlowForBlanketPurchaseLine subscribes to Codeunit “Blanket Purch. Order to Order” OnBeforeInsertPurchOrderLine
- DeleteAttachedDocumentsOnAfterDeleteItem subscribes to Table “Item” OnAfterDeleteEvent
- DeleteAttachedDocumentsOnAfterDeleteResource subscribes to Table “Resource” OnAfterDeleteEvent
- DeleteAttachedDocumentsOnAfterDeleteJob subscribes to Table “Job” OnAfterDeleteEvent
- DeleteAttachedDocumentsOnAfterDeleteEmployee subscribes to Table “Employee” OnAfterDeleteEvent
- DeleteAttachedDocumentsOnAfterDeleteFixedAsset subscribes to Table “Fixed Asset” OnAfterDeleteEvent
- DeleteAttachedDocumentsOnAfterDeleteOpportunity subscribes to Table “Opportunity” OnAfterDeleteEvent
- MoveAttachedDocumentsOnAfterRenameCustomer subscribes to Table “Customer” OnAfterRenameEvent
- MoveAttachedDocumentsOnAfterRenameVendor subscribes to Table “Vendor” OnAfterRenameEvent
- MoveAttachedDocumentsOnAfterRenameItem subscribes to Table “Item” OnAfterRenameEvent
- MoveAttachedDocumentsOnAfterRenameEmployee subscribes to Table “Employee” OnAfterRenameEvent
- MoveAttachedDocumentsOnAfterRenameFixedAsset subscribes to Table “Fixed Asset” OnAfterRenameEvent
- MoveAttachedDocumentsOnAfterRenameResource subscribes to Table “Resource” OnAfterRenameEvent
- MoveAttachedDocumentsOnAfterRenameJob subscribes to Table “Job” OnAfterRenameEvent
- MoveAttachedDocumentsOnAfterRenameOpportunity subscribes to Table “Opportunity” OnAfterRenameEvent
Procedures
DeleteAttachedDocuments(RecRef: RecordRef)+ BC24 Δ BC25DeleteAttachedDocumentsWithConfirm(RecRef: RecordRef)AttachedDocumentsExist(RecRef: RecordRef): BooleanUpdateNumOfRecForFactbox(var Rec: Record "Document Attachment"; var NumberOfRecords: Integer)+ BC25 (internal)GetRefTable(var RecRef: RecordRef; DocumentAttachment: Record "Document Attachment"): Boolean+ BC25 Δ BC26SetDocumentAttachmentRelatedFiltersForRecRef(var DocumentAttachment: Record "Document Attachment"; RecRef: RecordRef)SetDocumentAttachmentFiltersForRecRef(var DocumentAttachment: Record "Document Attachment"; RecRef: RecordRef)SetDocumentAttachmentFiltersForRecRefInternal(var DocumentAttachment: Record "Document Attachment"; RecRef: RecordRef; GetRelatedAttachments: Boolean)(internal)IsSalesDocumentFlow(TableNo: Integer): Boolean(internal)IsPurchaseDocumentFlow(TableNo: Integer): Boolean(internal)IsServiceDocumentFlow(TableNo: Integer): Boolean+ BC24 (internal)IsProductionDocumentFlow(TableNo: Integer): Boolean+ BC26 (internal)IsFlowFieldsEditable(TableNo: Integer): Boolean(internal)TableHasNumberFieldPrimayKey(TableNo: Integer; var FieldNo: Integer): Boolean(internal)TableHasDocTypePrimaryKey(TableNo: Integer; var FieldNo: Integer): Boolean(internal)TableHasLineNumberPrimaryKey(TableNo: Integer; var FieldNo: Integer): Boolean(internal)TableHasVATReportConfigCodePrimaryKey(TableNo: Integer; var FieldNo: Integer): Boolean(internal)TransformAttachmentDocumentTypeValue(TableNo: Integer; var AttachmentDocumentType: Enum "Attachment Document Type")+ BC24 (internal)IsSupportedByFileViewerExtension(FileExtension: Text; IncludeImages: Boolean): Boolean+ BC29 (internal)IsSupportedByFileViewerFileName(FileName: Text; IncludeImages: Boolean): Boolean+ BC29 (internal)IsDuplicateFile(TableID: Integer; DocumentNo: Code[20]; AttachmentDocumentType: Enum "Attachment Document Type"; RecLineNo: Integer; FileName: Text; FileExtension: Text): BooleanΔ BC24 + BC24 − BC27CopyAttachments(FromRec: Variant; ToRec: Variant)CopyAttachments(var FromRecRef: RecordRef; var ToRecRef: RecordRef)CopyAttachmentsForPostedDocs(var FromRecRef: RecordRef; var ToRecRef: RecordRef)CopyAttachmentsForPostedDocsLines(var FromRecRef: RecordRef; var ToRecRef: RecordRef)MoveAttachmentsWithinSameRecordType(var MoveFromRecRef: RecordRef; var MoveToRecRef: RecordRef)ShowNotification(Variant: Variant; NumberOfReportsAttached: Integer; ShowAction: Boolean)ShowDocPrintedToAttachmentNotification(Variant: Variant; ShowAction: Boolean)ShowNotFoundPrintableReportsNotification(Variant: Variant)ShowDocumentAttachments(Notification: Notification)DeleteAttachedDocuments(ForVariantRec: Variant; WithConfirm: Boolean)+ BC24 Δ BC25
Plus 9 local procedures.
Triggers
OnRun
Calls
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 1511 “Notification Lifecycle Mgt.” (2 calls:
ShowDocPrintedToAttachmentNotification → SendNotificationWithAdditionalContext,ShowNotFoundPrintableReportsNotification → SendNotification) - Codeunit 27 “Confirm Management” (1 call:
DeleteAttachedDocumentsWithConfirm → GetResponseOrDefault) - Page 1173 “Document Attachment Details” (1 call:
ShowDocumentAttachments → (object))
Called by
- Codeunit 6459 “Serv. Document Attachment Mgt.” (34 calls:
CopyDocumentAttachmentsToPostedServiceDocument → CopyAttachmentsForPostedDocs,DeleteAttachedDocumentsOnAfterDeleteServiceContractHeader → DeleteAttachedDocuments,DeleteAttachedDocumentsOnAfterDeleteServiceContractLine → DeleteAttachedDocuments, …) - Codeunit 99000783 “Prod. Document Attachment Mgt.” (13 calls:
DeleteAttachedDocumentsOnAfterDeleteProdOrderLine → DeleteAttachedDocuments,DeleteAttachedDocumentsOnAfterDeleteProductionBOM → DeleteAttachedDocuments,DeleteAttachedDocumentsOnAfterDeleteProductionOrder → DeleteAttachedDocuments, …) - Table 1173 “Document Attachment” (8 calls:
FindUniqueFileName → IsDuplicateFile,InitFieldsFromRecRef → TableHasDocTypePrimaryKey,InitFieldsFromRecRef → TableHasLineNumberPrimaryKey, …) - Page 1173 “Document Attachment Details” (6 calls:
OpenForRecRef → IsFlowFieldsEditable,OpenForRecRef → IsProductionDocumentFlow,OpenForRecRef → IsPurchaseDocumentFlow, …) - Codeunit 6989 “Expense Attachment Mgt.” (4 calls:
DeleteAttachedDocumentsOnAfterDeleteExpense → DeleteAttachedDocuments,DeleteAttachedDocumentsOnAfterDeleteExpenseReportLine → DeleteAttachedDocuments,UpdateReceiptAttachedOnExpense → AttachedDocumentsExist, …) - Table 77 “Report Selections” (4 calls:
SaveAsDocumentAttachment → ShowNotification,SaveDocumentAttachmentFromRecRef → IsPurchaseDocumentFlow,SaveDocumentAttachmentFromRecRef → IsSalesDocumentFlow, …) - Codeunit 6902 “Expense Rule Validation” (2 calls:
CheckForAttachmentsByRuleOnExpense → AttachedDocumentsExist,CheckForAttachmentsByRuleOnExpenseReportLine → AttachedDocumentsExist) - Page 1178 “Doc. Attachment List Factbox” (2 calls:
InitiateAttachFromEmail → GetRefTable,LoadAndRunDocumentAttachmentDetail → GetRefTable) - Table 133 “Incoming Document Attachment” (2 calls:
SupportedByFileViewer → IsSupportedByFileViewerExtension,SupportedByFileViewer → IsSupportedByFileViewerFileName) - Codeunit 5932 “Service-Get Shipment” (1 call:
CopyDocumentAttachments → CopyAttachments) - Codeunit 64 “Sales-Get Shipment” (1 call:
CopyDocumentAttachments → CopyAttachments) - Codeunit 6638 “Sales-Get Return Receipts” (1 call:
CopyDocumentAttachments → CopyAttachments) - Codeunit 6648 “Purch.-Get Return Shipments” (1 call:
CopyDocumentAttachments → CopyAttachments) - Codeunit 6983 “Create Expense Report” (1 call:
CopyAttachments → CopyAttachments) - Codeunit 6987 “Expense Report-Post” (1 call:
CopyDocumentAttachment → CopyAttachments) - Codeunit 74 “Purch.-Get Receipt” (1 call:
CopyDocumentAttachments → CopyAttachments) - Codeunit 8898 “Map Email Source” (1 call:
FindRelatedAttachments → SetDocumentAttachmentRelatedFiltersForRecRef)
Recent changes
- 2026-09-29 #11342 [29.x][ALL-E] Document Type is Quote in Document Attachment table (1173) after posting a Sales Invoice with attachmentsIntial Commit (releases/29.x, BC29, fix)
- 2026-09-16 #11114 [Master][ALL-E] Document Type is Quote in Document Attachment table (1173) after posting a Sales Invoice with attachments. (main, BC30, fix)
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Document Attachment Mgmt"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.