---
id: object/page/30080
type: object
title: Page 30080 "APIV2 - Document Attachments"
summary: Page 30080 "APIV2 - Document Attachments" in APIV2 (Microsoft.API.V2). Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - page
  - apiv2
versions:
  introduced: "29"
  last_changed: null
  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: 91f7401e478d332a82c30571a9ad607ed8ea4e070d796cdf2a134fe7f56d8e2f
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/APIV2/app/src/pages/APIV2DocumentAttachments.Page.al
    title: src/Apps/W1/APIV2/app/src/pages/APIV2DocumentAttachments.Page.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_documentattachment_create
    title: Create documentAttachments
    date: null
    commit: null
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_documentattachment_delete
    title: Delete documentAttachments
    date: null
    commit: null
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_documentattachment_get
    title: Get documentAttachments
    date: null
    commit: null
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_documentattachment_update
    title: Update documentAttachments
    date: null
    commit: null
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_documentattachment
    title: documentAttachment resource type
    date: null
    commit: null
    t: null
    quote: null
links:
  learn:
    - 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
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: page
object_id: 30080
name: APIV2 - Document Attachments
namespace: Microsoft.API.V2
app: APIV2
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids:
  - docs/learn-devitpro/dev-itpro/api-reference/v2.0/api/dynamics_documentattachment_create.md
  - docs/learn-devitpro/dev-itpro/api-reference/v2.0/api/dynamics_documentattachment_delete.md
  - docs/learn-devitpro/dev-itpro/api-reference/v2.0/api/dynamics_documentattachment_get.md
  - docs/learn-devitpro/dev-itpro/api-reference/v2.0/api/dynamics_documentattachment_update.md
  - docs/learn-devitpro/dev-itpro/api-reference/v2.0/resources/dynamics_documentattachment.md
counts:
  fields: 0
  procedures: 2
  events: 0
  subscribers: 0
  controls: 10
  actions: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 3
  called_by: 0
  implements: 0
---

# Page 30080 "APIV2 - Document Attachments"

> Page 30080 "APIV2 - Document Attachments" in APIV2 (Microsoft.API.V2). Introduced in BC29, still in BC30.

APIV2 · Microsoft.API.V2 · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/APIV2/app/src/pages/APIV2DocumentAttachments.Page.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Extensible | false |
| SourceTable | Attachment Entity Buffer |
| PageType | API |

## Fields on this page

Layout controls in source order, grouped by the container they sit in. Shows: the table field a control is bound to (or its expression as written); ToolTip: the control's own, else the bound field's (marked).

| Group | Control | Shows | ToolTip |
|---|---|---|---|
| Group | Id | [Id](../table/5509.md#fields) | — |
|  | File Name | [File Name](../table/5509.md#fields) | — |
|  | Byte Size | [Byte Size](../table/5509.md#fields) | — |
|  | Content | [Content](../table/5509.md#fields) | — |
|  | Parent Type | [Document Type](../table/5509.md#fields) | — |
|  | Parent Id | [Document Id](../table/5509.md#fields) | — |
|  | Line No. | [Line No.](../table/5509.md#fields) | — |
|  | Flow to Sales Transactions | [Document Flow Sales](../table/5509.md#fields) | — |
|  | Flow to Purchase Transactions | [Document Flow Purchase](../table/5509.md#fields) | — |
|  | Last Modified Date | [Created Date-Time](../table/5509.md#fields) | — |

## Procedures

2 local procedures, no public ones.

## Triggers

OnOpenPage, OnDeleteRecord, OnFindRecord, OnInsertRecord, OnModifyRecord

## Relations

- source table [Table 5509 "Attachment Entity Buffer"](../table/5509.md)

## 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 5503 "Graph Mgt - Attachment Buffer"](../codeunit/5503.md) (10 calls: `ByteSizeFromContent → GetContentLength`, `OnDeleteRecord → PropagateDeleteAttachmentWithDocumentType`, `OnFindRecord → LoadDocumentAttachments`, …)
- [Codeunit 4100 "Temp Blob"](../codeunit/4100.md) (1 call: `ByteSizeFromContent → FromRecord`)
- [Codeunit 419 "File Management"](../codeunit/419.md) (1 call: `OnInsertRecord → IsValidFileName`)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

## Documented on Microsoft Learn

- [Create documentAttachments](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_documentattachment_create)
- [Delete documentAttachments](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_documentattachment_delete)
- [Get documentAttachments](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_documentattachment_get)
- [Update documentAttachments](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_documentattachment_update)
- [documentAttachment resource type](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_documentattachment)

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