---
title: "Table 5062 Attachment, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/table/5062-attachment/points/
object: https://jonas-paprotka.de/ref/table/5062-attachment/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/table/5062-attachment/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/"
---

# Table 5062 Attachment, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/table/5062-attachment/points/

28 procedures and triggers with a step in src/Layers/W1/BaseApp/CRM/Interaction/Attachment.Table.al, in source order, read from the text, not from a run.

## OpenAttachment

[Line 142](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L142).

- [148](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L148) raises `OnBeforeOpenAttachment`, IsHandled
- [152](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L152) calls `IsHTML`
- [156](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L156) calls `PreviewHTMLContent`
- [166](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L166) calls [Codeunit 4030 Client Type Management](https://jonas-paprotka.de/ref/codeunit/4030-client-type-management/) `GetCurrentClientType`
- [167](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L167) calls `ProcessWebAttachment`

## OpenAttachment

[Line 170](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L170).

- [172](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L172) calls `IsHTML`
- [173](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L173) calls `PreviewHTMLContent`
- [181](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L181) calls `ProcessWebAttachment`

## InsertRecord

[Line 185](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L185).

- [189](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L189) writes [Table 5062 Attachment](https://jonas-paprotka.de/ref/table/5062-attachment/) Insert
- [190](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L190) calls [Codeunit 9500 Sequence No. Mgt.](https://jonas-paprotka.de/ref/codeunit/9500-sequence-no-mgt/) `RebaseSeqNo`
- [191](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L191) calls [Codeunit 9500 Sequence No. Mgt.](https://jonas-paprotka.de/ref/codeunit/9500-sequence-no-mgt/) `GetNextSeqNo`
- [192](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L192) writes [Table 5062 Attachment](https://jonas-paprotka.de/ref/table/5062-attachment/) Insert

## ShowAttachment

[Line 196](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L196).

- [201](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L201) raises `OnBeforeShowAttachment`, IsHandled
- [205](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L205) calls `IsHTML`
- [206](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L206) calls `PreviewHTMLContent`
- [213](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L213) raises `OnShowAttachmentOnAfterCalcAttachmentFile`
- [215](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L215) calls [Codeunit 5069 Word Template Interactions](https://jonas-paprotka.de/ref/codeunit/5069-word-template-interactions/) `IsWordDocumentExtension`
- [216](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L216) calls [Codeunit 5069 Word Template Interactions](https://jonas-paprotka.de/ref/codeunit/5069-word-template-interactions/) `RunMergedDocument`
- [218](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L218) calls `ProcessWebAttachment`

## PreviewHTMLContent

[Line 221](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L221), local.

- [225](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L225) calls [Page 5084 Content Preview](https://jonas-paprotka.de/ref/page/5084-content-preview/) `SetContent`
- [225](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L225) calls [Codeunit 5052 AttachmentManagement](https://jonas-paprotka.de/ref/codeunit/5052-attachmentmanagement/) `LoadHTMLContent`

## ExportAttachmentToClientFile

[Line 230](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L230).

- [241](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L241) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `ServerTempFileName`
- [242](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L242) calls `ExportAttachmentToServerFile`
- [244](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L244) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `Magicpath`
- [250](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L250) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `DeleteServerFile`

## ImportAttachmentFromClientFile

[Line 255](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L255).

- [263](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L263) calls `ImportTemporaryAttachmentFromClientFile`
- [271](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L271) calls [Codeunit 5052 AttachmentManagement](https://jonas-paprotka.de/ref/codeunit/5052-attachmentmanagement/) `InsertAttachment`
- [275](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L275) calls [Codeunit 5052 AttachmentManagement](https://jonas-paprotka.de/ref/codeunit/5052-attachmentmanagement/) `InsertAttachment`
- [290](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L290) calls `ImportAttachmentFromServerFile`

## ImportTemporaryAttachmentFromClientFile

[Line 293](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L293), local.

- [298](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L298) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `BLOBImport`
- [301](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L301) calls `SetAttachmentFileFromBlob`
- [304](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L304) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `GetExtension`
- [305](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L305) writes [Table 5062 Attachment](https://jonas-paprotka.de/ref/table/5062-attachment/) Modify

## ExportAttachmentToServerFile

[Line 313](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L313).

- [319](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L319) raises `OnBeforeExportAttachmentToServerFile`, IsHandled
- [332](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L332) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `FromRecord`
- [334](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L334) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `ServerTempFileName`
- [335](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L335) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `BLOBExportToServerFile`
- [343](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L343) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `GetFileName`
- [343](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L343) calls `ConstDiskFileName`
- [344](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L344) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `CopyServerFile`
- [344](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L344) calls `GetServerFileName`
- [344](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L344) calls `ConstDiskFileName`

## ExportAttachmentToTempBlob

[Line 357](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L357).

- [367](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L367) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `FromRecord`
- [374](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L374) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `BLOBImportFromServerFile`
- [374](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L374) calls `GetServerFileName`
- [374](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L374) calls `ConstDiskFileName`

## ImportAttachmentFromServerFile

[Line 383](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L383).

- [390](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L390) raises `OnBeforeImportAttachmentFromServerFile`, IsHandled
- [395](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L395) calls `ImportTemporaryAttachmentFromServerFile`
- [409](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L409) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `BLOBImportFromServerFile`
- [410](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L410) calls `SetAttachmentFileFromBlob`
- [413](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L413) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `GetExtension`
- [416](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L416) writes [Table 5062 Attachment](https://jonas-paprotka.de/ref/table/5062-attachment/) Modify(true)
- [423](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L423) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `GetExtension`
- [426](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L426) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `CopyServerFile`
- [426](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L426) calls `ConstDiskFileName`
- [427](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L427) writes [Table 5062 Attachment](https://jonas-paprotka.de/ref/table/5062-attachment/) Modify(true)

## ImportAttachmentFromStream

[Line 435](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L435), internal.

- [437](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L437) calls `SetAttachmentFileFromStream`
- [441](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L441) writes [Table 5062 Attachment](https://jonas-paprotka.de/ref/table/5062-attachment/) Insert(true)

## ImportTemporaryAttachmentFromServerFile

[Line 446](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L446), local.

- [450](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L450) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `BLOBImportFromServerFile`
- [451](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L451) calls `SetAttachmentFileFromBlob`
- [454](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L454) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `GetExtension`

## RemoveAttachment

[Line 458](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L458).

- [472](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L472) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `DeleteServerFile`
- [472](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L472) calls `ConstDiskFileName`
- [474](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L474) writes [Table 5062 Attachment](https://jonas-paprotka.de/ref/table/5062-attachment/) Delete(true)

## WizEmbeddAttachment

[Line 480](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L480).

- [485](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L485) raises `OnBeforeWizEmbeddAttachment`, IsHandled
- [495](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L495) calls `ImportAttachmentFromServerFile`
- [495](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L495) calls [Table 5062 Attachment](https://jonas-paprotka.de/ref/table/5062-attachment/) `ConstDiskFileName`

## WizSaveAttachment

[Line 505](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L505).

- [511](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L511) raises `OnBeforeWizSaveAttachment`, IsHandled
- [523](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L523) calls `CopyAttachmentAsFile`

## ConstDiskFileName

[Line 529](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L529).

- [531](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L531) raises `OnBeforeConstDiskFileName`

## CopyAttachmentAsFile

[Line 536](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L536), local.

- [547](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L547) raises `OnAfterCopyAttachmentAsFile`

## LinkToMessage

[Line 550](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L550).

- [555](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L555) calls `SetMessageID`
- [556](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L556) calls `SetEntryID`
- [558](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L558) writes [Table 5062 Attachment](https://jonas-paprotka.de/ref/table/5062-attachment/) Modify

## SetMessageID

[Line 584](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L584).

- [591](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L591) calls `Checksum`

## ReadHTMLCustomLayoutAttachment

[Line 649](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L649).

- [653](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L653) calls `Read`
- [655](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L655) calls `ParseHTMLCustomLayoutAttachment`
- [657](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L657) calls `ParseHTMLCustomLayoutAttachment`

## WriteHTMLCustomLayoutAttachment

[Line 660](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L660).

- [664](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L664) calls `GetCustomLayoutCodeLength`
- [666](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L666) calls `Write`
- [667](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L667) writes [Table 5062 Attachment](https://jonas-paprotka.de/ref/table/5062-attachment/) Modify

## WriteHTMLCustomLayoutAttachment

[Line 670](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L670).

- [672](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L672) calls `Write`
- [673](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L673) writes [Table 5062 Attachment](https://jonas-paprotka.de/ref/table/5062-attachment/) Modify

## ParseHTMLCustomLayoutAttachment

[Line 676](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L676), local.

- [681](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L681) calls `GetCustomLayoutCodeLength`

## IsHTMLReady

[Line 726](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L726).

- [733](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L733) calls `IsHTML`
- [738](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L738) calls `Read`

## IsHTMLCustomLayout

[Line 747](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L747).

- [754](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L754) calls `GetCustomLayoutCodeLength`
- [755](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L755) calls `IsHTML`
- [758](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L758) calls `Read`

## ProcessWebAttachment

[Line 782](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L782), local.

- [787](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L787) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `FromRecord`
- [788](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L788) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `BLOBExport`
- [791](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L791) calls `ImportAttachmentFromClientFile`

## SetAttachmentFileFromBlob

[Line 802](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L802).

- [807](https://jonas-paprotka.de/ref/table/5062-attachment/source/#L807) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `ToRecordRef`

## Source

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

JOP-AL, 2026-11-20.
