{"title":"Table 1173 Document Attachment, changes","url":"https://jonas-paprotka.de/ref/table/1173-document-attachment/changes/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"table","id":1173,"name":"Document Attachment","app":"Base Application","versions":"17-29","url":"https://jonas-paprotka.de/ref/table/1173-document-attachment/","json":"https://jonas-paprotka.de/ref/table/1173-document-attachment.json"},"aspect":"changes","total":46,"rows":[{"version":26,"kind":"field","change":"added","name":"Document Flow Production","member":{"id":21,"name":"Document Flow Production","type":"Boolean","obsolete":null}},{"version":26,"kind":"procedure","change":"added","name":"SupportedByFileViewer","member":{"name":"SupportedByFileViewer","sig":"()","named":"()","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}},{"version":26,"kind":"procedure","change":"added","name":"ViewFile","member":{"name":"ViewFile","sig":"()","named":"()","returns":"","kind":"procedure","access":"public","obsolete":null}},{"version":25,"kind":"procedure","change":"added","name":"SaveAttachment","member":{"name":"SaveAttachment","sig":"(List, RecordRef)","named":"(Files: List of [FileUpload]; RecRef: RecordRef)","returns":"","kind":"procedure","access":"public","obsolete":null}},{"version":25,"kind":"procedure","change":"added","name":"SaveAttachment","member":{"name":"SaveAttachment","sig":"(List, RecordRef, TextEncoding)","named":"(Files: List of [FileUpload]; RecRef: RecordRef; EncodingType: TextEncoding)","returns":"","kind":"procedure","access":"public","obsolete":null}},{"version":25,"kind":"event","change":"added","name":"OnAfterIsPostedDocument","member":{"name":"OnAfterIsPostedDocument","sig":"(Integer, var Boolean)","named":"(TableID: Integer; var Posted: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}},{"version":24,"kind":"field","change":"added","name":"Document Flow Service","member":{"id":20,"name":"Document Flow Service","type":"Boolean","obsolete":null}},{"version":24,"kind":"event","change":"gone","name":"OnBeforeValidateDocumentFlowPurchase","member":{"name":"OnBeforeValidateDocumentFlowPurchase","sig":"(var Record Document Attachment, Record Document Attachment, Boolean)","named":"(var DocumentAttachment: Record \"Document Attachment\"; xDocumentAttachment: Record \"Document Attachment\"; IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}},{"version":24,"kind":"event","change":"gone","name":"OnBeforeValidateDocumentFlowSales","member":{"name":"OnBeforeValidateDocumentFlowSales","sig":"(var Record Document Attachment, Record Document Attachment, Boolean)","named":"(var DocumentAttachment: Record \"Document Attachment\"; xDocumentAttachment: Record \"Document Attachment\"; IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}},{"version":24,"kind":"event","change":"added","name":"OnBeforeValidateDocumentFlowPurchase","member":{"name":"OnBeforeValidateDocumentFlowPurchase","sig":"(var Record Document Attachment, Record Document Attachment, var Boolean)","named":"(var DocumentAttachment: Record \"Document Attachment\"; xDocumentAttachment: Record \"Document Attachment\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}},{"version":24,"kind":"event","change":"added","name":"OnBeforeValidateDocumentFlowSales","member":{"name":"OnBeforeValidateDocumentFlowSales","sig":"(var Record Document Attachment, Record Document Attachment, var Boolean)","named":"(var DocumentAttachment: Record \"Document Attachment\"; xDocumentAttachment: Record \"Document Attachment\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}},{"version":24,"kind":"event","change":"added","name":"OnBeforeValidateDocumentFlowService","member":{"name":"OnBeforeValidateDocumentFlowService","sig":"(var Record Document Attachment, Record Document Attachment, var Boolean)","named":"(var DocumentAttachment: Record \"Document Attachment\"; xDocumentAttachment: Record \"Document Attachment\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}},{"version":23,"kind":"key","change":"added","name":"Key2","member":{"name":"Key2","fields":["Document Reference ID"],"clustered":false}},{"version":23,"kind":"procedure","change":"added","name":"HasContent","member":{"name":"HasContent","sig":"()","named":"()","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}},{"version":23,"kind":"procedure","change":"added","name":"ImportFromStream","member":{"name":"ImportFromStream","sig":"(InStream, Text)","named":"(AttachmentInStream: InStream; FileName: Text)","returns":"","kind":"procedure","access":"public","obsolete":null}},{"version":23,"kind":"procedure","change":"added","name":"ExportToStream","member":{"name":"ExportToStream","sig":"(var OutStream)","named":"(var AttachmentOutStream: OutStream)","returns":"","kind":"procedure","access":"public","obsolete":null}},{"version":23,"kind":"procedure","change":"added","name":"GetAsTempBlob","member":{"name":"GetAsTempBlob","sig":"(var Codeunit Temp Blob)","named":"(var TempBlob: Codeunit \"Temp Blob\")","returns":"","kind":"procedure","access":"public","obsolete":null}},{"version":23,"kind":"procedure","change":"added","name":"GetContentType","member":{"name":"GetContentType","sig":"()","named":"()","returns":"Text[100]","kind":"procedure","access":"public","obsolete":null}},{"version":23,"kind":"procedure","change":"added","name":"OpenInOneDrive","member":{"name":"OpenInOneDrive","sig":"(Enum Document Sharing Intent)","named":"(DocumentSharingIntent: Enum \"Document Sharing Intent\")","returns":"","kind":"procedure","access":"public","obsolete":null}},{"version":23,"kind":"event","change":"added","name":"OnBeforeHasContent","member":{"name":"OnBeforeHasContent","sig":"(var Record Document Attachment, var Boolean, var Boolean)","named":"(var DocumentAttachment: Record \"Document Attachment\"; var AttachmentIsAvailable: Boolean; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}},{"version":23,"kind":"event","change":"added","name":"OnBeforeImportFromStream","member":{"name":"OnBeforeImportFromStream","sig":"(var Record Document Attachment, var InStream, var Text, var Boolean)","named":"(var DocumentAttachment: Record \"Document Attachment\"; var AttachmentInStream: InStream; var FileName: Text; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}},{"version":23,"kind":"event","change":"added","name":"OnBeforeExportToStream","member":{"name":"OnBeforeExportToStream","sig":"(var Record Document Attachment, var OutStream, var Boolean)","named":"(var DocumentAttachment: Record \"Document Attachment\"; var AttachmentOutStream: OutStream; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}},{"version":23,"kind":"event","change":"added","name":"OnBeforeGetAsTempBlob","member":{"name":"OnBeforeGetAsTempBlob","sig":"(var Record Document Attachment, var Codeunit Temp Blob, var Boolean)","named":"(var DocumentAttachment: Record \"Document Attachment\"; var TempBlob: Codeunit \"Temp Blob\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}},{"version":23,"kind":"event","change":"added","name":"OnBeforeOpenInOneDrive","member":{"name":"OnBeforeOpenInOneDrive","sig":"(var Record Document Attachment, Enum Document Sharing Intent, var Boolean)","named":"(var Rec: Record \"Document Attachment\"; DocumentSharingIntent: Enum \"Document Sharing Intent\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}},{"version":23,"kind":"event","change":"added","name":"OnBeforeGetContentType","member":{"name":"OnBeforeGetContentType","sig":"(var Record Document Attachment, var Text[100], var Boolean)","named":"(var Rec: Record \"Document Attachment\"; var ContentType: Text[100]; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}},{"version":22,"kind":"procedure","change":"added","name":"ImportAttachment","member":{"name":"ImportAttachment","sig":"(InStream, Text)","named":"(DocumentInStream: InStream; FileName: Text)","returns":"","kind":"procedure","access":"public","obsolete":null}},{"version":22,"kind":"event","change":"gone","name":"OnBeforeSaveAttachment","member":{"name":"OnBeforeSaveAttachment","sig":"(var Record Document Attachment, var RecordRef, Text, var Codeunit Temp Blob)","named":"(var DocumentAttachment: Record \"Document Attachment\"; var RecRef: RecordRef; FileName: Text; var TempBlob: Codeunit \"Temp Blob\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}},{"version":22,"kind":"event","change":"gone","name":"OnBeforeSaveAttachmentFromStream","member":{"name":"OnBeforeSaveAttachmentFromStream","sig":"(var Record Document Attachment, var RecordRef, Text, var InStream)","named":"(var DocumentAttachment: Record \"Document Attachment\"; var RecRef: RecordRef; FileName: Text; var DocStream: InStream)","returns":"","kind":"integrationevent","access":"local","obsolete":null}},{"version":22,"kind":"event","change":"gone","name":"OnBeforeExport","member":{"name":"OnBeforeExport","sig":"(var Record Document Attachment, var Boolean)","named":"(var DocumentAttachment: Record \"Document Attachment\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}},{"version":22,"kind":"event","change":"added","name":"OnBeforeExport","member":{"name":"OnBeforeExport","sig":"(var Record Document Attachment, var Boolean, Boolean)","named":"(var DocumentAttachment: Record \"Document Attachment\"; var IsHandled: Boolean; ShowFileDialog: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}},{"version":22,"kind":"event","change":"added","name":"OnBeforeSaveAttachment","member":{"name":"OnBeforeSaveAttachment","sig":"(var Record Document Attachment, var RecordRef, var Text, var Codeunit Temp Blob)","named":"(var DocumentAttachment: Record \"Document Attachment\"; var RecRef: RecordRef; var FileName: Text; var TempBlob: Codeunit \"Temp Blob\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}},{"version":22,"kind":"event","change":"added","name":"OnBeforeSaveAttachmentFromStream","member":{"name":"OnBeforeSaveAttachmentFromStream","sig":"(var Record Document Attachment, var RecordRef, var Text, var InStream)","named":"(var DocumentAttachment: Record \"Document Attachment\"; var RecRef: RecordRef; var FileName: Text; var DocStream: InStream)","returns":"","kind":"integrationevent","access":"local","obsolete":null}},{"version":22,"kind":"event","change":"added","name":"OnBeforeValidateDocumentFlowPurchase","member":{"name":"OnBeforeValidateDocumentFlowPurchase","sig":"(var Record Document Attachment, Record Document Attachment, Boolean)","named":"(var DocumentAttachment: Record \"Document Attachment\"; xDocumentAttachment: Record \"Document Attachment\"; IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}},{"version":22,"kind":"event","change":"added","name":"OnBeforeValidateDocumentFlowSales","member":{"name":"OnBeforeValidateDocumentFlowSales","sig":"(var Record Document Attachment, Record Document Attachment, Boolean)","named":"(var DocumentAttachment: Record \"Document Attachment\"; xDocumentAttachment: Record \"Document Attachment\"; IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}},{"version":22,"kind":"event","change":"added","name":"OnInsertOnBeforeCheckDocRefID","member":{"name":"OnInsertOnBeforeCheckDocRefID","sig":"(var Record Document Attachment, var Boolean)","named":"(var DocumentAttachment: Record \"Document Attachment\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}},{"version":22,"kind":"event","change":"added","name":"OnInsertAttachmentOnBeforeImportStream","member":{"name":"OnInsertAttachmentOnBeforeImportStream","sig":"(var Record Document Attachment, InStream, Text, var Boolean)","named":"(var DocumentAttachment: Record \"Document Attachment\"; DocInStream: InStream; FileName: Text; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}},{"version":21,"kind":"procedure","change":"added","name":"SaveAttachment","member":{"name":"SaveAttachment","sig":"(RecordRef, Text, Codeunit Temp Blob, Boolean)","named":"(RecRef: RecordRef; FileName: Text; TempBlob: Codeunit \"Temp Blob\"; AllowDuplicateFileName: Boolean)","returns":"","kind":"procedure","access":"public","obsolete":null}},{"version":21,"kind":"procedure","change":"added","name":"SaveAttachmentFromStream","member":{"name":"SaveAttachmentFromStream","sig":"(InStream, RecordRef, Text, Boolean)","named":"(DocStream: InStream; RecRef: RecordRef; FileName: Text; AllowDuplicateFileName: Boolean)","returns":"","kind":"procedure","access":"public","obsolete":null}},{"version":21,"kind":"event","change":"added","name":"OnBeforeExport","member":{"name":"OnBeforeExport","sig":"(var Record Document Attachment, var Boolean)","named":"(var DocumentAttachment: Record \"Document Attachment\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}},{"version":19,"kind":"field","change":"changed","name":"File Type","member":{"id":6,"name":"File Type","type":"Enum Document Attachment File Type","obsolete":null},"was":{"id":6,"name":"File Type","type":"Option","obsolete":null}},{"version":19,"kind":"field","change":"added","name":"VAT Report Config. Code","member":{"id":15,"name":"VAT Report Config. Code","type":"Enum VAT Report Configuration","obsolete":null}},{"version":19,"kind":"procedure","change":"added","name":"VATReturnSubmissionAttachmentsExist","member":{"name":"VATReturnSubmissionAttachmentsExist","sig":"(Record VAT Report Header)","named":"(VATReportHeader: Record \"VAT Report Header\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}},{"version":19,"kind":"procedure","change":"added","name":"VATReturnResponseAttachmentsExist","member":{"name":"VATReturnResponseAttachmentsExist","sig":"(Record VAT Report Header)","named":"(VATReportHeader: Record \"VAT Report Header\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}},{"version":19,"kind":"procedure","change":"added","name":"DownloadZipFileWithVATReturnSubmissionAttachments","member":{"name":"DownloadZipFileWithVATReturnSubmissionAttachments","sig":"(Enum VAT Report Configuration, Code[20])","named":"(VATRepConfigCode: Enum \"VAT Report Configuration\"; VATReportNo: Code[20])","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}},{"version":19,"kind":"procedure","change":"added","name":"DownloadZipFileWithVATReturnResponseAttachments","member":{"name":"DownloadZipFileWithVATReturnResponseAttachments","sig":"(Enum VAT Report Configuration, Code[20])","named":"(VATRepConfigCode: Enum \"VAT Report Configuration\"; VATReportNo: Code[20])","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}},{"version":18,"kind":"event","change":"added","name":"OnAfterInitFieldsFromRecRef","member":{"name":"OnAfterInitFieldsFromRecRef","sig":"(var Record Document Attachment, var RecordRef)","named":"(var DocumentAttachment: Record \"Document Attachment\"; var RecRef: RecordRef)","returns":"","kind":"integrationevent","access":"local","obsolete":null}}]}