---
id: object/codeunit/99000783
type: object
title: Codeunit 99000783 "Prod. Document Attachment Mgt."
summary: Codeunit 99000783 "Prod. Document Attachment Mgt." in Base Application (Microsoft.Manufacturing.Document). 1 public procedures, 23 event subscribers. Introduced in BC26, still in BC30, changed in BC27-28.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: "26"
  last_changed: "28"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: a16096b339076dbdbb13d65eec9fc9441b1ff0fc17b005bdf3d71f2d14007d47
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Manufacturing/Document/ProdDocumentAttachmentMgt.Codeunit.al
    title: src/Layers/W1/BaseApp/Manufacturing/Document/ProdDocumentAttachmentMgt.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 99000783
name: Prod. Document Attachment Mgt.
namespace: Microsoft.Manufacturing.Document
app: Base Application
extends: null
first_version: "26"
last_version: "30"
present_in:
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "27"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 26
  events: 0
  subscribers: 23
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 2
  called_by: 0
  implements: 0
---

# Codeunit 99000783 "Prod. Document Attachment Mgt."

> Codeunit 99000783 "Prod. Document Attachment Mgt." in Base Application (Microsoft.Manufacturing.Document). 1 public procedures, 23 event subscribers. Introduced in BC26, still in BC30, changed in BC27-28.

Base Application · Microsoft.Manufacturing.Document · BC26-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Manufacturing/Document/ProdDocumentAttachmentMgt.Codeunit.al) · facts from BC29

## Event subscriptions

- OnAfterIsProductionDocumentFlow subscribes to Codeunit "Document Attachment Mgmt" OnAfterIsProductionDocumentFlow
- OnAfterIsTableDocument subscribes to Codeunit "Document Attachment Mgmt" OnAfterTableIsDocument
- OnAfterGetRefTable subscribes to Codeunit "Document Attachment Mgmt" OnAfterGetRefTable
- OnAfterTableHasNumberFieldPrimaryKey subscribes to Codeunit "Document Attachment Mgmt" OnAfterTableHasNumberFieldPrimaryKey
- OnAfterTableHasDocTypePrimaryKey subscribes to Codeunit "Document Attachment Mgmt" OnAfterTableHasDocTypePrimaryKey
- OnAfterTableHasLineNumberPrimaryKey subscribes to Codeunit "Document Attachment Mgmt" OnAfterTableHasLineNumberPrimaryKey
- OnCopyAttachmentsOnAfterSetFromParameters subscribes to Codeunit "Document Attachment Mgmt" OnCopyAttachmentsOnAfterSetFromParameters
- OnCopyAttachmentsOnAfterSetDocumentFlowFilter subscribes to Codeunit "Document Attachment Mgmt" OnCopyAttachmentsOnAfterSetDocumentFlowFilter
- OnCopyAttachmentsOnAfterSetToParameters subscribes to Codeunit "Document Attachment Mgmt" OnCopyAttachmentsOnAfterSetToParameters
- OnCopyAttachmentsOnAfterSetToDocumentFilters subscribes to Codeunit "Document Attachment Mgmt" OnCopyAttachmentsOnAfterSetToDocumentFilters
- DocumentAttachmentFlow_ForProdOrderLineInsert subscribes to Table "Prod. Order Line" OnAfterInsertEvent
- DocumentAttachmentFlow_ForProdOrderLineNoChange subscribes to Table "Prod. Order Line" OnAfterValidateEvent (Item No.)
- DocumentAttachmentFlow_ForProdOrderBomInsert subscribes to Table "Prod. Order Line" OnAfterValidateEvent (Production BOM No.)
- DocumentAttachmentFlow_ForRoutingNoInsert subscribes to Table "Prod. Order Line" OnAfterValidateEvent (Routing No.)
- DocumentAttachmentFlow_FromProdOrderToProdOrder subscribes to Codeunit "Prod. Order Status Management" OnAfterTransProdOrder
- DocumentAttachmentFlow_FromFinishedToReopenedProdOrder subscribes to Codeunit "Prod. Order Status Management" OnAfterTransferReopenProdOrder
- DocumentAttachmentFlow_FromFinishedToReopenedProdOrderLine subscribes to Codeunit "Prod. Order Status Management" OnAfterTransferReopenProdOrderLine
- OnAfterTransformAttachmentDocumentTypeValue subscribes to Codeunit "Document Attachment Mgmt" OnAfterTransformAttachmentDocumentTypeValue
- DocumentAttachmentFlow_FromProdOrderLineToProdOrderLine subscribes to Codeunit "Prod. Order Status Management" OnAfterToProdOrderLineModify
- DeleteAttachedDocumentsOnAfterDeleteProductionOrder subscribes to Table "Production Order" OnAfterDeleteEvent
- DeleteAttachedDocumentsOnAfterDeleteProdOrderLine subscribes to Table "Prod. Order Line" OnAfterDeleteEvent
- DeleteAttachedDocumentsOnAfterDeleteRoutingHeader subscribes to Table "Routing Header" OnAfterDeleteEvent
- DeleteAttachedDocumentsOnAfterDeleteProductionBOM subscribes to Table "Production BOM Header" OnAfterDeleteEvent

## Procedures

- `IsProductionDocumentFlow(TableNo: Integer): Boolean` (internal)

Plus 2 local procedures.

## 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 1173 "Document Attachment Mgmt"](../codeunit/1173.md) (13 calls: `DeleteAttachedDocumentsOnAfterDeleteProdOrderLine → DeleteAttachedDocuments`, `DeleteAttachedDocumentsOnAfterDeleteProductionBOM → DeleteAttachedDocuments`, `DeleteAttachedDocumentsOnAfterDeleteProductionOrder → DeleteAttachedDocuments`, …)
- [Codeunit 8703 "Feature Telemetry"](../codeunit/8703.md) (5 calls: `DeleteAttachedDocumentsOnAfterDeleteProdOrderLine → LogUptake`, `DeleteAttachedDocumentsOnAfterDeleteProductionBOM → LogUptake`, `DeleteAttachedDocumentsOnAfterDeleteProductionOrder → LogUptake`, …)

## Across versions

- Present in: BC26-30
- Changed (declaration) in: BC27-28

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## 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: "Prod. Document Attachment Mgt.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
