tablePlatform, DevOps & Performanceofficial - Microsoftderived - from the source, no model text

Table 1173 "Document Attachment"

Base Application · Microsoft.Foundation.Attachment

Across versions

  1. BC23present
  2. BC242 events changed, 1 fields added
  3. BC253 procedures added, 1 events added
  4. BC262 procedures added, 1 fields added
  5. BC27-28unchanged
  6. BC299 fields changed
  7. BC30unchanged

Neighbourhood 23 connected objects and pages

Table 746 "VAT Reports Configuration" (relates to)VAT Reports ConfigurationPage 1173 "Document Attachment Details" (pages and codeunits on it)Document Attachment DetailsPage 1178 "Doc. Attachment List Factbox" (pages and codeunits on it)Doc. Attachment List FactboxPage 6956 "Expense Picture" (pages and codeunits on it)Expense PicturePage 8751 "Document Attachment - External" (pages and codeunits on it)Document Attachment - ExternalTable extension 6160 "E-Doc. Attachment" (extended by)E-Doc. AttachmentTable extension 6902 "Exp. Document Attachment Ext" (extended by)Exp. Document Attachment ExtTable extension 8750 "Document Attachment Ext.Stor." (extended by)Codeunit 8751 "DA External Storage Impl." (event subscribers, 8 links)DA External Storage Impl.Codeunit 6989 "Expense Attachment Mgt." (event subscribers, 7 links)Expense Attachment Mgt.Codeunit 20414 "Qlty. Attachment Integration" (event subscribers)Codeunit 6169 "E-Doc. Attachment Processor" (event subscribers)Codeunit 6459 "Serv. Document Attachment Mgt." (event subscribers)Codeunit 6907 "Expense Doc. Att. Subscribers" (event subscribers)Codeunit 8059 "Sub. Contracts General Mgt." (event subscribers)Codeunit 1173 "Document Attachment Mgmt" (calls, 8 links)Document Attachment MgmtCodeunit 419 "File Management" (calls, 6 links)File ManagementCodeunit 4100 "Temp Blob" (calls, 5 links)Temp BlobCodeunit 425 "Data Compression" (calls, 4 links)Data CompressionCodeunit 9510 "Document Service Management" (calls, 3 links)Document Service ManagementTable 37 "Sales Line" (referenced by)Table 39 "Purchase Line" (referenced by)Table 8750 "DA External Storage Setup" (referenced by)

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

Base Application · Microsoft.Foundation.Attachment · BC23-30 · source at ea08af5e · facts from BC29

Properties

Property Value
Caption Document Attachment
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 ID Integer — not editable; AutoIncrement
2 Table ID Integer Specifies the table ID the attachment belongs to. via Page 8751 “Document Attachment - External” TableRelation AllObjWithCaption.“Object ID” where(“Object Type” = const(Table)); NotBlank
3 No. Code[20] Specifies the record number the attachment belongs to. via Page 8751 “Document Attachment - External” NotBlank
4 Attached Date Δ BC29 DateTime Specifies the date when the document was attached.
5 File Name Δ BC29 Text[250] Specifies the filename of the attachment. NotBlank
6 File Type Δ BC29 Enum “Document Attachment File Type” Specifies the type of document that the attachment is. enum Enum 1174 “Document Attachment File Type”
7 File Extension Δ BC29 Text[30] Specifies the file extension of the attachment.
8 Document Reference ID Media —
9 Attached By Guid Specifies the user who attached the file. via Page 8751 “Document Attachment - External” TableRelation User.“User Security ID” where(“License Type” = const(“Full User”)); not editable
10 User Δ BC29 Code[50] Specifies the user who attached the document. FlowField: lookup(User.“User Name” where(“User Security ID” = field(“Attached By”), “License Type” = const(“Full User”))); not editable
11 Document Flow Purchase Δ BC29 Boolean Specifies if the attachment must flow to transactions.
12 Document Flow Sales Δ BC29 Boolean Specifies if the attachment must flow to transactions.
13 Document Type Enum “Attachment Document Type” — enum Enum 1173 “Attachment Document Type”
14 Line No. Integer —
15 VAT Report Config. Code Enum “VAT Report Configuration” — TableRelation Table 746 “VAT Reports Configuration” (“VAT Reports Configuration”.“VAT Report Type”); enum Enum 740 “VAT Report Configuration”
20 Document Flow Service + BC24 Δ BC29 Boolean Specifies if the attachment must flow to transactions.
21 Document Flow Production + BC26 Δ BC29 Boolean Specifies if the attachment must flow to transactions.

Keys

  • Key1: Table ID, No., Document Type, Line No., ID (clustered)
  • Key2: Document Reference ID

Events published

  • OnBeforeHasContent(var DocumentAttachment: Record "Document Attachment"; var AttachmentIsAvailable: Boolean; var IsHandled: Boolean) (integration)
  • OnBeforeImportFromStream(var DocumentAttachment: Record "Document Attachment"; var AttachmentInStream: InStream; var FileName: Text; var IsHandled: Boolean) (integration)
  • OnBeforeExportToStream(var DocumentAttachment: Record "Document Attachment"; var AttachmentOutStream: OutStream; var IsHandled: Boolean) (integration)
  • OnBeforeGetAsTempBlob(var DocumentAttachment: Record "Document Attachment"; var TempBlob: Codeunit "Temp Blob"; var IsHandled: Boolean) (integration)
  • OnBeforeOpenInOneDrive(var Rec: Record "Document Attachment"; DocumentSharingIntent: Enum "Document Sharing Intent"; var IsHandled: Boolean) (integration)
  • OnBeforeGetContentType(var Rec: Record "Document Attachment"; var ContentType: Text[100]; var IsHandled: Boolean) (integration)
  • OnBeforeExport(var DocumentAttachment: Record "Document Attachment"; var IsHandled: Boolean; ShowFileDialog: Boolean) (integration)
  • OnBeforeExportAttachment(var DocumentAttachment: Record "Document Attachment") (integration)
  • OnBeforeInsertAttachment(var DocumentAttachment: Record "Document Attachment"; var RecRef: RecordRef) (integration)
  • OnBeforeSaveAttachment(var DocumentAttachment: Record "Document Attachment"; var RecRef: RecordRef; var FileName: Text; var TempBlob: Codeunit "Temp Blob") (integration)
  • OnBeforeSaveAttachmentFromStream(var DocumentAttachment: Record "Document Attachment"; var RecRef: RecordRef; var FileName: Text; var DocStream: InStream) (integration)
  • OnAfterInitFieldsFromRecRef(var DocumentAttachment: Record "Document Attachment"; var RecRef: RecordRef) (integration)
  • OnBeforeValidateDocumentFlowPurchase(var DocumentAttachment: Record "Document Attachment"; xDocumentAttachment: Record "Document Attachment"; var IsHandled: Boolean) Δ BC24 (integration)
  • OnBeforeValidateDocumentFlowSales(var DocumentAttachment: Record "Document Attachment"; xDocumentAttachment: Record "Document Attachment"; var IsHandled: Boolean) Δ BC24 (integration)
  • OnBeforeValidateDocumentFlowService(var DocumentAttachment: Record "Document Attachment"; xDocumentAttachment: Record "Document Attachment"; var IsHandled: Boolean) + BC24 (integration)
  • OnInsertOnBeforeCheckDocRefID(var DocumentAttachment: Record "Document Attachment"; var IsHandled: Boolean) (integration)
  • OnInsertAttachmentOnBeforeImportStream(var DocumentAttachment: Record "Document Attachment"; DocInStream: InStream; FileName: Text; var IsHandled: Boolean) (integration)
  • OnAfterIsPostedDocument(TableID: Integer; var Posted: Boolean) + BC25 (integration)

Trigger event subscribers

Procedures

  • ImportAttachment(DocumentInStream: InStream; FileName: Text)
  • Export(ShowFileDialog: Boolean): Text
  • HasPostedDocumentAttachment(Record: Variant): Boolean
  • SupportedByFileViewer(): Boolean + BC26
  • SaveAttachment(RecRef: RecordRef; FileName: Text; TempBlob: Codeunit "Temp Blob") + BC25 + BC25
  • SaveAttachment(RecRef: RecordRef; FileName: Text; TempBlob: Codeunit "Temp Blob"; AllowDuplicateFileName: Boolean) + BC25 + BC25
  • SaveAttachment(Files: List of [FileUpload]; RecRef: RecordRef) + BC25 + BC25
  • SaveAttachment(Files: List of [FileUpload]; RecRef: RecordRef; EncodingType: TextEncoding) + BC25 + BC25
  • SaveAttachmentFromStream(DocStream: InStream; RecRef: RecordRef; FileName: Text)
  • SaveAttachmentFromStream(DocStream: InStream; RecRef: RecordRef; FileName: Text; AllowDuplicateFileName: Boolean)
  • InitFieldsFromRecRef(RecRef: RecordRef)
  • FindUniqueFileName(FileName: Text; FileExtension: Text): Text[250]
  • VATReturnSubmissionAttachmentsExist(VATReportHeader: Record "VAT Report Header"): Boolean
  • VATReturnResponseAttachmentsExist(VATReportHeader: Record "VAT Report Header"): Boolean
  • DownloadZipFileWithVATReturnSubmissionAttachments(VATRepConfigCode: Enum "VAT Report Configuration"; VATReportNo: Code[20]): Boolean
  • DownloadZipFileWithVATReturnResponseAttachments(VATRepConfigCode: Enum "VAT Report Configuration"; VATReportNo: Code[20]): Boolean
  • HasContent(): Boolean
  • ImportFromStream(AttachmentInStream: InStream; FileName: Text)
  • ExportToStream(var AttachmentOutStream: OutStream)
  • GetAsTempBlob(var TempBlob: Codeunit "Temp Blob")
  • GetContentType(): Text[100]
  • ViewFile() + BC26
  • OpenInOneDrive(DocumentSharingIntent: Enum "Document Sharing Intent")

Plus 5 local procedures.

Triggers

OnInsert

Relations

Referenced by

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

Pages and codeunits on this table

Extended by

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 1173 “Document Attachment Mgmt” (8 calls: FindUniqueFileName → IsDuplicateFile, InitFieldsFromRecRef → TableHasDocTypePrimaryKey, InitFieldsFromRecRef → TableHasLineNumberPrimaryKey, …)
  • Codeunit 419 “File Management” (6 calls: Export → BLOBExport, InsertAttachment → GetExtension, InsertAttachment → GetFileNameWithoutExtension, …)
  • Codeunit 4100 “Temp Blob” (5 calls: DownloadZipFileWithVATReturnAttachments → CreateInStream, DownloadZipFileWithVATReturnAttachments → CreateOutStream, Export → CreateOutStream, …)
  • Codeunit 425 “Data Compression” (4 calls: DownloadZipFileWithVATReturnAttachments → AddEntry, DownloadZipFileWithVATReturnAttachments → CloseZipArchive, DownloadZipFileWithVATReturnAttachments → CreateZipArchive, …)
  • Codeunit 9510 “Document Service Management” (3 calls: OpenInOneDrive → EditInOneDriveFromMedia, OpenInOneDrive → OpenInOneDriveFromMedia, OpenInOneDrive → ShareWithOneDriveFromMedia)

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

Evidence 1 sources