{"title":"Codeunit 99000783 Prod. Document Attachment Mgt., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/99000783-prod-document-attachment-mgt/points/","author":"JOP-AL","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/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-11-04","object":{"type":"codeunit","id":99000783,"name":"Prod. Document Attachment Mgt.","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/99000783-prod-document-attachment-mgt/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/99000783-prod-document-attachment-mgt/source/","path":"src/Layers/W1/BaseApp/Manufacturing/Document/ProdDocumentAttachmentMgt.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"table:1173":{"name":"Document Attachment","url":"https://jonas-paprotka.de/ref/table/1173-document-attachment/"},"codeunit:1173":{"name":"Document Attachment Mgmt","url":"https://jonas-paprotka.de/ref/codeunit/1173-document-attachment-mgmt/"},"codeunit:8703":{"name":"Feature Telemetry","url":"https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/"}},"procs":[{"name":"OnAfterIsProductionDocumentFlow","line":20,"kind":"procedure","access":"local","params":2,"steps":[[22,"call","IsProductionDocumentFlow",1]]},{"name":"OnCopyAttachmentsOnAfterSetFromParameters","line":132,"kind":"procedure","access":"local","params":3,"steps":[[159,"call","TransformAttachmentDocumentTypeValue",2],[172,"call","TransformAttachmentDocumentTypeValue",2]]},{"name":"OnCopyAttachmentsOnAfterSetToParameters","line":209,"kind":"procedure","access":"local","params":6,"steps":[[218,"call","TransformAttachmentDocumentTypeValue",2],[229,"call","TransformAttachmentDocumentTypeValue",2]]},{"name":"OnCopyAttachmentsOnAfterSetToDocumentFilters","line":243,"kind":"procedure","access":"local","params":5,"steps":[[248,"validate",1173,"Document Type"],[251,"validate",1173,"Document Type"],[252,"validate",1173,"Line No."]]},{"name":"DocumentAttachmentFlow_ForProdOrderLineInsert","line":258,"kind":"procedure","access":"local","params":2,"steps":[[278,"ext","codeunit",1173,"CopyAttachments",2],[282,"ext","codeunit",1173,"CopyAttachments",2],[286,"ext","codeunit",1173,"CopyAttachments",2],[292,"ext","codeunit",8703,"LogUptake",3],[292,"call","GetFeatureTelemetryName",0]]},{"name":"DocumentAttachmentFlow_ForProdOrderLineNoChange","line":296,"kind":"procedure","access":"local","params":2,"steps":[[307,"ext","codeunit",1173,"DeleteAttachedDocuments",2],[308,"call","DocumentAttachmentFlow_ForProdOrderLineInsert",2]]},{"name":"DocumentAttachmentFlow_ForProdOrderBomInsert","line":312,"kind":"procedure","access":"local","params":2,"steps":[[323,"ext","codeunit",1173,"DeleteAttachedDocuments",2],[324,"call","DocumentAttachmentFlow_ForProdOrderLineInsert",2]]},{"name":"DocumentAttachmentFlow_ForRoutingNoInsert","line":328,"kind":"procedure","access":"local","params":2,"steps":[[339,"ext","codeunit",1173,"DeleteAttachedDocuments",2],[340,"call","DocumentAttachmentFlow_ForProdOrderLineInsert",2]]},{"name":"DocumentAttachmentFlow_FromProdOrderToProdOrder","line":344,"kind":"procedure","access":"local","params":2,"steps":[[352,"ext","codeunit",1173,"CopyAttachments",2]]},{"name":"DocumentAttachmentFlow_FromFinishedToReopenedProdOrder","line":356,"kind":"procedure","access":"local","params":2,"steps":[[364,"ext","codeunit",1173,"CopyAttachments",2]]},{"name":"DocumentAttachmentFlow_FromFinishedToReopenedProdOrderLine","line":368,"kind":"procedure","access":"local","params":2,"steps":[[373,"ext","codeunit",1173,"CopyAttachments",2]]},{"name":"OnAfterTransformAttachmentDocumentTypeValue","line":377,"kind":"procedure","access":"local","params":2,"steps":[[379,"call","TransformAttachmentDocumentTypeValue",2]]},{"name":"DocumentAttachmentFlow_FromProdOrderLineToProdOrderLine","line":383,"kind":"procedure","access":"local","params":2,"steps":[[388,"ext","codeunit",1173,"DeleteAttachedDocuments",2],[389,"ext","codeunit",1173,"CopyAttachments",2]]},{"name":"DeleteAttachedDocumentsOnAfterDeleteProductionOrder","line":393,"kind":"procedure","access":"local","params":2,"steps":[[403,"ext","codeunit",1173,"DeleteAttachedDocuments",2],[404,"ext","codeunit",8703,"LogUptake",3],[404,"call","GetFeatureTelemetryName",0]]},{"name":"DeleteAttachedDocumentsOnAfterDeleteProdOrderLine","line":408,"kind":"procedure","access":"local","params":2,"steps":[[419,"ext","codeunit",1173,"DeleteAttachedDocuments",2],[420,"ext","codeunit",8703,"LogUptake",3],[420,"call","GetFeatureTelemetryName",0]]},{"name":"DeleteAttachedDocumentsOnAfterDeleteRoutingHeader","line":424,"kind":"procedure","access":"local","params":2,"steps":[[434,"ext","codeunit",1173,"DeleteAttachedDocuments",2],[435,"ext","codeunit",8703,"LogUptake",3],[435,"call","GetFeatureTelemetryName",0]]},{"name":"DeleteAttachedDocumentsOnAfterDeleteProductionBOM","line":439,"kind":"procedure","access":"local","params":2,"steps":[[449,"ext","codeunit",1173,"DeleteAttachedDocuments",2],[450,"ext","codeunit",8703,"LogUptake",3],[450,"call","GetFeatureTelemetryName",0]]}]}