---
title: "Table 61 Electronic Document Format"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/table/61-electronic-document-format/
type: table
id: 61
name: "Electronic Document Format"
app: "Base Application"
namespace: Microsoft.Foundation.Reporting
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/table/61-electronic-document-format/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Table 61 Electronic Document Format

Jonas Paprotka, https://jonas-paprotka.de/ref/table/61-electronic-document-format/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Foundation.Reporting |
| Versions | 17-28 |
| Source file | Foundation/Reporting/ElectronicDocumentFormat.Table.al |

## Fields

| Id | Name | Type | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| 1 | Code | Code[20] | 17-28 | - | - |
| 2 | Usage | Enum Electronic Document Format Usage | 17-28 | - | - |
| 4 | Description | Text[250] | 17-28 | - | - |
| 5 | Codeunit ID | Integer | 17-28 | - | - |
| 6 | Codeunit Caption | Text[250] | 17-28 | - | - |
| 7 | Delivery Codeunit ID | Integer | 17-28 | - | - |
| 8 | Delivery Codeunit Caption | Text[250] | 17-28 | - | - |

## Keys

| Name | Fields | Versions |
| --- | --- | --- |
| Key1, clustered | Code, Usage | 17-28 |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| SendElectronically | (var Text[250], var Text[250], Variant, Code[20]) | - | public | 17-22 | Pending 20.0 | Replaced by SendElectronically with TempBlob parameter. |
| ValidateElectronicServiceDocument | (Record Service Header, Code[20]) | - | public | 17-27 | Pending 25.0 | Replaced by same procedure in codeunit "Serv. Electr. Doc. Format" |
| ValidateElectronicSalesDocument | (Record Sales Header, Code[20]) | - | public | 17-28 | - | - |
| ValidateElectronicJobsDocument | (Record Job, Code[20]) | - | public | 17-28 | - | - |
| GetAttachmentFileName | (Code[20], Text, Code[3]) | Text[250] | public | 17-22 | Pending 20.0 | Replaced by GetAttachmentFileName with RecordVariant parameter |
| GetDocumentUsage | (var Option, Variant) | - | public | 17-27 | Pending 25.0 | Replaced by GetDocumentFormatUsage() with enum parameter |
| GetDocumentNo | (Variant) | Code[20] | public | 17-28 | - | - |
| ValidateElectronicFormat | (Code[20]) | - | public | 17-28 | - | - |
| InsertElectronicFormat | (Code[20], Text[250], Integer, Integer, Option) | - | public | 17-28 | - | - |
| SendElectronically | (var Codeunit Temp Blob, var Text[250], Variant, Code[20]) | - | public | 20-28 | - | - |
| GetAttachmentFileName | (Variant, Code[20], Text, Code[3]) | Text[250] | public | 20-28 | - | - |
| GetDocumentType | (Variant) | Text[50] | public | 22-28 | - | - |
| ValidateElectronicJobTasksDocument | (Record Job Task, Code[20]) | - | public | 24-28 | - | - |
| GetDocumentFormatUsage | (var Enum Electronic Document Format Usage, Variant) | - | public | 25-28 | - | - |
| RunOnBeforeGetDocumentUsageForServiceHeader | (Record Electronic Document Format, Record Service Header, var Option, var Boolean) | - | internal | 25-27 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnDiscoverElectronicFormat | () | 17-28 | - | - |
| Integration event | OnBeforeGetDocumentUsage | (Record Electronic Document Format, Variant, var Option, var Boolean) | 17-27 | Pending 25.0 | Replaced by event OnBeforeGetDocumentFormatUsage |
| Integration event | OnBeforeGetDocumentUsageForSalesHeader | (Record Electronic Document Format, Record Sales Header, var Option, var Boolean) | 17-27 | Pending 25.0 | Replaced by event OnBeforeGetDocumentFormatUsageForSalesHeader |
| Integration event | OnBeforeGetDocumentUsageForServiceHeader | (Record Electronic Document Format, Record Service Header, var Option, var Boolean) | 17-27 | Pending 25.0 | Replaced by event OnBeforeGetDocumentFormatUsageForServiceHeader in codeunit "Serv. Electr. Doc. Format" |
| Integration event | OnGetDocumentNoCaseElse | (Variant, var Code[20], var Boolean) | 17-24 | - | - |
| Integration event | OnGetDocumentTypeCaseElse | (Variant, var Text[50]) | 17-24 | - | - |
| Integration event | OnSendElectronicallyOnBeforeRecordExportBufferInsert | (var Record Record Export Buffer, RecordRef) | 17-28 | - | - |
| Integration event | OnSendElectronicallyOnAfterRecRefGetTable | (var RecordRef) | 20-26 | - | - |
| Integration event | OnBeforeGetAttachmentFileName | (Variant, Code[20], Text, Code[3], var Boolean, var Text[250]) | 20-28 | - | - |
| Integration event | OnSendElectronicallyOnBeforeDeleteAll | (var Record Record Export Buffer, var Text[250], Variant) | 22-28 | - | - |
| Integration event | OnBeforeGetDocumentFormatUsage | (Record Electronic Document Format, Variant, var Enum Electronic Document Format Usage, var Boolean) | 25-28 | - | - |
| Integration event | OnBeforeGetDocumentFormatUsageForSalesHeader | (Record Electronic Document Format, Record Sales Header, var Enum Electronic Document Format Usage, var Boolean) | 25-28 | - | - |
| Integration event | OnGetDocumentNoCaseElse | (Variant, var Code[20], var Boolean, RecordRef) | 25-28 | - | - |
| Integration event | OnGetDocumentTypeCaseElse | (Variant, var Text[50], RecordRef) | 25-28 | - | - |
| Integration event | OnGetDocumentFormatUsageCaseElse | (RecordRef, var Enum Electronic Document Format Usage, var Boolean) | 25-28 | - | - |
| Integration event | OnAfterShouldLogUptake | (var Record Electronic Document Format, var Boolean) | 25-28 | - | - |
| Integration event | OnSendElectronicallyOnAfterRecRefGetTable | (Record Electronic Document Format, var RecordRef) | 27-28 | - | - |
| Integration event | OnSendElectronicallyOnAfterRecordExportBufferFileGenerated | (var Record Record Export Buffer, RecordRef) | 28 | - | - |
| Integration event | OnAfterSendElectronically | (var Record Electronic Document Format, var Text[250], Variant, Code[20]) | 28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
