---
id: object/table/61
type: object
title: Table 61 "Electronic Document Format"
summary: Table 61 "Electronic Document Format" in Base Application (Microsoft.Foundation.Reporting). 7 fields, 10 public procedures, 13 events. Present since at least BC23, still in BC30, changed in BC24-25, BC27-29.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "29"
  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: 5c539b77725c37d3bd244b5b171b0162dd02e8294c4a5c230a9234adbd9aa82a
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Foundation/Reporting/ElectronicDocumentFormat.Table.al
    title: src/Layers/W1/BaseApp/Foundation/Reporting/ElectronicDocumentFormat.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/11774
object_type: table
object_id: 61
name: Electronic Document Format
namespace: Microsoft.Foundation.Reporting
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "25"
  - "27"
  - "28"
  - "29"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 7
  procedures: 26
  events: 13
  subscribers: 0
relations:
  out: 1
  referenced_by: 4
  pages: 2
  extended_by: 0
  event_subscribers: 4
  calls: 5
  called_by: 0
  implements: 0
---

# Table 61 "Electronic Document Format"

> Table 61 "Electronic Document Format" in Base Application (Microsoft.Foundation.Reporting). 7 fields, 10 public procedures, 13 events. Present since at least BC23, still in BC30, changed in BC24-25, BC27-29.

Base Application · Microsoft.Foundation.Reporting · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Foundation/Reporting/ElectronicDocumentFormat.Table.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Electronic Document Format |
| DataClassification | CustomerContent |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | Code | Code[20] | Specifies a code to identify the electronic document format in the system. | NotBlank |
| 2 | Usage | Enum "Electronic Document Format Usage" | Specifies if the electronic document format is used for sales invoices or sales credit memos. | enum [Enum 61 "Electronic Document Format Usage"](../enum/61.md) |
| 4 | Description | Text[250] | Specifies the electronic document format. |  |
| 5 | Codeunit ID | Integer | Specifies which codeunit is used to manage electronic document sending for this document sending method. | TableRelation AllObjWithCaption."Object ID" where("Object Type" = const(Codeunit)); NotBlank |
| 6 | Codeunit Caption | Text[250] | Specifies the name of the codeunit. | FlowField: lookup(AllObjWithCaption."Object Caption" where("Object Type" = const(Codeunit), "Object ID" = field("Codeunit ID"))); not editable |
| 7 | Delivery Codeunit ID | Integer | Specifies which delivery codeunit is used to manage electronic document sending for this document sending method. | TableRelation AllObjWithCaption."Object ID" where("Object Type" = const(Codeunit)) |
| 8 | Delivery Codeunit Caption | Text[250] | Specifies the name of the delivery codeunit. | FlowField: lookup(AllObjWithCaption."Object Caption" where("Object Type" = const(Codeunit), "Object ID" = field("Delivery Codeunit ID"))); not editable |

## Keys

- Key1: Code, Usage (clustered)

## Events published

- `OnDiscoverElectronicFormat()` (integration)
- `OnBeforeGetDocumentFormatUsage(ElectronicDocumentFormat: Record "Electronic Document Format"; DocumentVariant: Variant; var DocumentFormatUsage: Enum "Electronic Document Format Usage"; var IsHandled: Boolean)` (integration)
- `OnBeforeGetDocumentFormatUsageForSalesHeader(ElectronicDocumentFormat: Record "Electronic Document Format"; SalesHeader: Record "Sales Header"; var DocumentUsage: Enum "Electronic Document Format Usage"; var IsHandled: Boolean)` (integration)
- `OnGetDocumentNoCaseElse(DocumentVariant: Variant; var DocumentNo: Code[20]; var IsHandled: Boolean; DocumentRecordRef: RecordRef)` (integration)
  - subscribers: [Codeunit 6464 "Serv. Electr. Doc. Format"](../codeunit/6464.md) OnGetDocumentNoCaseElse
- `OnGetDocumentTypeCaseElse(DocumentVariant: Variant; var DocumentTypeText: Text[50]; DocumentRecordRef: RecordRef)` (integration)
  - subscribers: [Codeunit 6464 "Serv. Electr. Doc. Format"](../codeunit/6464.md) OnGetDocumentTypeCaseElse
- `OnSendElectronicallyOnBeforeDeleteAll(var RecordExportBuffer: Record "Record Export Buffer"; var ClientFileName: Text[250]; DocumentVariant: Variant)` (integration)
- `OnSendElectronicallyOnBeforeRecordExportBufferInsert(var RecordExportBuffer: Record "Record Export Buffer"; RecRef: RecordRef)` (integration)
- `OnSendElectronicallyOnAfterRecRefGetTable(ElectronicDocumentFormat: Record "Electronic Document Format"; var RecRef: RecordRef)` (integration)
- `OnBeforeGetAttachmentFileName(RecordVariant: Variant; DocumentNo: Code[20]; DocumentType: Text; Extension: Code[3]; var IsHandled: Boolean; var FileName: Text[250])` (integration)
- `OnGetDocumentFormatUsageCaseElse(DocumentRecordRef: RecordRef; var DocumentFormatUsage: Enum "Electronic Document Format Usage"; var IsHandled: Boolean)` (integration)
  - subscribers: [Codeunit 6464 "Serv. Electr. Doc. Format"](../codeunit/6464.md) OnGetDocumentUsageCaseElse
- `OnAfterShouldLogUptake(var ElectronicDocumentFormat: Record "Electronic Document Format"; var Result: Boolean)` (integration, obsolete 29.0)
  - subscribers: [Codeunit 6464 "Serv. Electr. Doc. Format"](../codeunit/6464.md) OnAfterShouldLogUptake
- `OnSendElectronicallyOnAfterRecordExportBufferFileGenerated(var RecordExportBuffer: Record "Record Export Buffer"; RecRef: RecordRef)` (integration)
- `OnAfterSendElectronically(var ElectronicDocumentFormat: Record "Electronic Document Format"; var ClientFileName: Text[250]; DocumentVariant: Variant; ElectronicFormat: Code[20])` (integration)

## Procedures

- `SendElectronically(var TempBlob: Codeunit "Temp Blob"; var ClientFileName: Text[250]; DocumentVariant: Variant; ElectronicFormat: Code[20])`
- `ValidateElectronicSalesDocument(SalesHeader: Record "Sales Header"; ElectronicFormat: Code[20])`
- `ValidateElectronicJobsDocument(Job: Record Job; ElectronicFormat: Code[20])`
- `ValidateElectronicJobTasksDocument(JobTask: Record "Job Task"; ElectronicFormat: Code[20])`
- `GetAttachmentFileName(RecordVariant: Variant; DocumentNo: Code[20]; DocumentType: Text; Extension: Code[3]): Text[250]`
- `GetDocumentFormatUsage(var DocumentFormatUsage: Enum "Electronic Document Format Usage"; DocumentVariant: Variant)`
- `GetDocumentNo(DocumentVariant: Variant): Code[20]`
- `ValidateElectronicFormat(ElectronicFormat: Code[20])`
- `GetDocumentType(DocumentVariant: Variant): Text[50]`
- `InsertElectronicFormat(InsertElectronicFormatCode: Code[20]; InsertElectronicFormatDescription: Text[250]; CodeunitID: Integer; DeliveryCodeunitID: Integer; InsertElectronicFormatUsage: Option)`

Plus 3 local procedures.

## Triggers

OnInsert, OnModify

## Relations

- lookup page [Page 363 "Electronic Document Format"](../page/363.md)

## Referenced by

4 fields in 2 objects relate to this table (TableRelation or CalcFormula).

- [Table 60 "Document Sending Profile"](../table/60.md): Disk Format, E-Mail Format, Electronic Format
- [Table 62 "Record Export Buffer"](../table/62.md): Electronic Document Format

## Pages and codeunits on this table

- [Page 363 "Electronic Document Format"](../page/363.md) (source table)
- [Page 366 "Electronic Document Formats"](../page/366.md) (source table)

## 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 425 "Data Compression"](../codeunit/425.md) (4 calls: `SendElectronically → AddEntry`, `SendElectronically → CloseZipArchive`, `SendElectronically → CreateZipArchive`, …)
- [Codeunit 4100 "Temp Blob"](../codeunit/4100.md) (2 calls: `SendElectronically → CreateInStream`, `SendElectronically → CreateOutStream`)
- [Codeunit 53 "Translation Helper"](../codeunit/53.md) (2 calls: `GetDocumentType → RestoreGlobalLanguage`, `GetDocumentType → SetGlobalLanguageByCode`)
- [Codeunit 419 "File Management"](../codeunit/419.md) (1 call: `GetAttachmentFileName → StripNotsupportChrInFileName`)
- [Codeunit 452 "Report Distribution Management"](../codeunit/452.md) (1 call: `GetDocumentType → GetDocumentLanguageCode`)

## Recent changes

- 2026-09-29 [#11774 Use lower case file extensions for document attachment file names](../../changes/bcapps/11774.md) (main, BC30, fix)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24-25, BC27-29

## Deprecations

- procedure ShouldLogUptake: guarded (#if not CLEAN29)
- procedure OnAfterShouldLogUptake: Pending 29.0 (#if not CLEAN29), "Peppol functionality is replaced by PEPPOL App. This event will be removed in future versions."

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: "table", object_name: "Electronic Document Format")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
