---
id: object/table/5509
type: object
title: Table 5509 "Attachment Entity Buffer"
summary: Table 5509 "Attachment Entity Buffer" in Base Application (Microsoft.Integration.Graph). 13 fields, 3 public procedures. Present since at least BC23, still in BC30, changed in BC24.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "24"
  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: f017e84cba4f40ad108725ea43a24783a00ce4993a4184b7ba58b4b2d49d2b95
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Integration/Graph/AttachmentEntityBuffer.Table.al
    title: src/Layers/W1/BaseApp/Integration/Graph/AttachmentEntityBuffer.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_attachment_create
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_attachment_delete
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_attachment_get
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_attachment_update
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_attachment
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_documentattachment_create
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_documentattachment_delete
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_documentattachment_get
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_documentattachment_update
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_documentattachment
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_pdfdocument_get
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_pdfDocument
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 5509
name: Attachment Entity Buffer
namespace: Microsoft.Integration.Graph
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 13
  procedures: 4
  events: 0
  subscribers: 0
relations:
  out: 1
  referenced_by: 0
  pages: 9
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 0
  implements: 0
---

# Table 5509 "Attachment Entity Buffer"

> Table 5509 "Attachment Entity Buffer" in Base Application (Microsoft.Integration.Graph). 13 fields, 3 public procedures. Present since at least BC23, still in BC30, changed in BC24.

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

Learn documents this table through its pages: [Page 30039 "APIV2 - Attachments"](../page/30039.md) (5 Learn pages), [Page 30080 "APIV2 - Document Attachments"](../page/30080.md) (5), [Page 30056 "APIV2 - PDF Document"](../page/30056.md) (2).

## Properties

| Property | Value |
|---|---|
| Caption | Attachment Entity Buffer |
| TableType | Temporary |
| 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 |
|---|---|---|---|---|
| 3 | Created Date-Time | DateTime | — | DataClassification SystemMetadata |
| 5 | File Name | Text[250] | Specifies the Description for the Item. <small>via [Page 20039 "APIV1 - Attachments"](../page/20039.md)</small> | DataClassification SystemMetadata |
| 6 | Type | Enum "Document Attachment File Type" | — | enum [Enum 1174 "Document Attachment File Type"](../enum/1174.md); DataClassification SystemMetadata |
| 8 | Content | BLOB | Specifies the content. <small>via [Page 20057 "APIV1 - PDF Document"](../page/20057.md)</small> | DataClassification SystemMetadata |
| 12 | Document Type | Enum "Attachment Entity Buffer Document Type" | — | enum [Enum 135 "Attachment Entity Buffer Document Type"](../enum/135.md); DataClassification SystemMetadata |
| 13 | Attachment Type | Enum "Attachment Entity Buffer Type" | — | enum [Enum 138 "Attachment Entity Buffer Type"](../enum/138.md); DataClassification SystemMetadata |
| 8000 | Id | Guid | — | DataClassification SystemMetadata |
| 8001 | Document Id | Guid | — | DataClassification SystemMetadata |
| 8002 | Byte Size | Integer | — | DataClassification SystemMetadata |
| 8003 | G/L Entry No. | Integer | — | TableRelation [Table 17 "G/L Entry"](../table/17.md) (G/L Entry); DataClassification SystemMetadata |
| 11 | Document Flow Purchase | Boolean | Flow to Purch. Trx <small>caption</small> | DataClassification SystemMetadata |
| 8012 | Document Flow Sales | Boolean | Flow to Sales Trx <small>caption</small> | DataClassification SystemMetadata |
| 8014 | Line No. | Integer | — | DataClassification SystemMetadata |

## Keys

- Key1: Id (clustered)

## Procedures

- `SetBinaryContent(BinaryContent: Text)`
- `SetTextContent(TextContent: Text)`
- `SetTextContentToBLOB(var TempBlob: Codeunit "Temp Blob"; TextContent: Text)`

Plus 1 local procedures.

## Triggers

OnRename

## Relations

- G/L Entry No.: TableRelation [Table 17 "G/L Entry"](../table/17.md)

## Pages and codeunits on this table

- [Page 20039 "APIV1 - Attachments"](../page/20039.md) (source table)
- [Page 20040 "APIV1 - G/L Entry Attachments"](../page/20040.md) (source table)
- [Page 20057 "APIV1 - PDF Document"](../page/20057.md) (source table)
- [Page 30039 "APIV2 - Attachments"](../page/30039.md) (source table)
- [Page 30056 "APIV2 - PDF Document"](../page/30056.md) (source table)
- [Page 30080 "APIV2 - Document Attachments"](../page/30080.md) (source table)
- [Page 6908 "Exp. Rep. Line Attachments API"](../page/6908.md) (source table)
- [Page 6926 "Posted Exp. Rep. Line Att. API"](../page/6926.md) (source table)
- [Page 6950 "Expense Attachments API"](../page/6950.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 4100 "Temp Blob"](../codeunit/4100.md) (1 call: `SetTextContentToBLOB → CreateOutStream`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24

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: "Attachment Entity Buffer")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
