Table 1173 Document Attachment

Base Application, Microsoft.Foundation.Attachment
List17181920212223242526272829
Fields211
Keys1
Procedures421622
Events1110651

In 26 3 added

field(21; "Document Flow Production"; Boolean)new in 26
added
SupportedByFileViewer(): Booleannew in 26
added
ViewFile()new in 26
added

In 25 3 added

SaveAttachment(Files: List of [FileUpload]; RecRef: RecordRef)new in 25
added
SaveAttachment(Files: List of [FileUpload]; RecRef: RecordRef; EncodingType: TextEncoding)new in 25
added
[IntegrationEvent] OnAfterIsPostedDocument(TableID: Integer; var Posted: Boolean)new in 25
added

In 24 4 added, 2 gone

field(20; "Document Flow Service"; Boolean)new in 24
added
[IntegrationEvent] OnBeforeValidateDocumentFlowPurchase(var DocumentAttachment: Record "Document Attachment"; xDocumentAttachment: Record "Document Attachment"; IsHandled: Boolean)22 to 23
gone
[IntegrationEvent] OnBeforeValidateDocumentFlowSales(var DocumentAttachment: Record "Document Attachment"; xDocumentAttachment: Record "Document Attachment"; IsHandled: Boolean)22 to 23
gone
[IntegrationEvent] OnBeforeValidateDocumentFlowPurchase(var DocumentAttachment: Record "Document Attachment"; xDocumentAttachment: Record "Document Attachment"; var IsHandled: Boolean)new in 24
added
[IntegrationEvent] OnBeforeValidateDocumentFlowSales(var DocumentAttachment: Record "Document Attachment"; xDocumentAttachment: Record "Document Attachment"; var IsHandled: Boolean)new in 24
added
[IntegrationEvent] OnBeforeValidateDocumentFlowService(var DocumentAttachment: Record "Document Attachment"; xDocumentAttachment: Record "Document Attachment"; var IsHandled: Boolean)new in 24
added

In 23 13 added

key(Key2; "Document Reference ID")new in 23
added
HasContent(): Booleannew in 23
added
ImportFromStream(AttachmentInStream: InStream; FileName: Text)new in 23
added
ExportToStream(var AttachmentOutStream: OutStream)new in 23
added
GetAsTempBlob(var TempBlob: Codeunit "Temp Blob")new in 23
added
GetContentType(): Text[100]new in 23
added
OpenInOneDrive(DocumentSharingIntent: Enum "Document Sharing Intent")new in 23
added
[IntegrationEvent] OnBeforeHasContent(var DocumentAttachment: Record "Document Attachment"; var AttachmentIsAvailable: Boolean; var IsHandled: Boolean)new in 23
added
[IntegrationEvent] OnBeforeImportFromStream(var DocumentAttachment: Record "Document Attachment"; var AttachmentInStream: InStream; var FileName: Text; var IsHandled: Boolean)new in 23
added
[IntegrationEvent] OnBeforeExportToStream(var DocumentAttachment: Record "Document Attachment"; var AttachmentOutStream: OutStream; var IsHandled: Boolean)new in 23
added
[IntegrationEvent] OnBeforeGetAsTempBlob(var DocumentAttachment: Record "Document Attachment"; var TempBlob: Codeunit "Temp Blob"; var IsHandled: Boolean)new in 23
added
[IntegrationEvent] OnBeforeOpenInOneDrive(var Rec: Record "Document Attachment"; DocumentSharingIntent: Enum "Document Sharing Intent"; var IsHandled: Boolean)new in 23
added
[IntegrationEvent] OnBeforeGetContentType(var Rec: Record "Document Attachment"; var ContentType: Text[100]; var IsHandled: Boolean)new in 23
added

In 22 8 added, 3 gone

ImportAttachment(DocumentInStream: InStream; FileName: Text)new in 22
added
[IntegrationEvent] OnBeforeSaveAttachment(var DocumentAttachment: Record "Document Attachment"; var RecRef: RecordRef; FileName: Text; var TempBlob: Codeunit "Temp Blob")gone after 21
gone
[IntegrationEvent] OnBeforeSaveAttachmentFromStream(var DocumentAttachment: Record "Document Attachment"; var RecRef: RecordRef; FileName: Text; var DocStream: InStream)gone after 21
gone
[IntegrationEvent] OnBeforeExport(var DocumentAttachment: Record "Document Attachment"; var IsHandled: Boolean)21 to 21
gone
[IntegrationEvent] OnBeforeExport(var DocumentAttachment: Record "Document Attachment"; var IsHandled: Boolean; ShowFileDialog: Boolean)new in 22
added
[IntegrationEvent] OnBeforeSaveAttachment(var DocumentAttachment: Record "Document Attachment"; var RecRef: RecordRef; var FileName: Text; var TempBlob: Codeunit "Temp Blob")new in 22
added
[IntegrationEvent] OnBeforeSaveAttachmentFromStream(var DocumentAttachment: Record "Document Attachment"; var RecRef: RecordRef; var FileName: Text; var DocStream: InStream)new in 22
added
[IntegrationEvent] OnBeforeValidateDocumentFlowPurchase(var DocumentAttachment: Record "Document Attachment"; xDocumentAttachment: Record "Document Attachment"; IsHandled: Boolean)22 to 23
added
[IntegrationEvent] OnBeforeValidateDocumentFlowSales(var DocumentAttachment: Record "Document Attachment"; xDocumentAttachment: Record "Document Attachment"; IsHandled: Boolean)22 to 23
added
[IntegrationEvent] OnInsertOnBeforeCheckDocRefID(var DocumentAttachment: Record "Document Attachment"; var IsHandled: Boolean)new in 22
added
[IntegrationEvent] OnInsertAttachmentOnBeforeImportStream(var DocumentAttachment: Record "Document Attachment"; DocInStream: InStream; FileName: Text; var IsHandled: Boolean)new in 22
added

In 21 3 added

SaveAttachment(RecRef: RecordRef; FileName: Text; TempBlob: Codeunit "Temp Blob"; AllowDuplicateFileName: Boolean)new in 21
added
SaveAttachmentFromStream(DocStream: InStream; RecRef: RecordRef; FileName: Text; AllowDuplicateFileName: Boolean)new in 21
added
[IntegrationEvent] OnBeforeExport(var DocumentAttachment: Record "Document Attachment"; var IsHandled: Boolean)21 to 21
added

In 19 1 changed, 5 added

field(6; "File Type"; Enum "Document Attachment File Type")17-29changed in 19
changed, was field(6; "File Type"; Option)
field(15; "VAT Report Config. Code"; Enum "VAT Report Configuration")new in 19
added
VATReturnSubmissionAttachmentsExist(VATReportHeader: Record "VAT Report Header"): Booleannew in 19
added
VATReturnResponseAttachmentsExist(VATReportHeader: Record "VAT Report Header"): Booleannew in 19
added
DownloadZipFileWithVATReturnSubmissionAttachments(VATRepConfigCode: Enum "VAT Report Configuration"; VATReportNo: Code[20]): Booleannew in 19
added
DownloadZipFileWithVATReturnResponseAttachments(VATRepConfigCode: Enum "VAT Report Configuration"; VATReportNo: Code[20]): Booleannew in 19
added

In 18 1 added

[IntegrationEvent] OnAfterInitFieldsFromRecRef(var DocumentAttachment: Record "Document Attachment"; var RecRef: RecordRef)new in 18
added