Table 1173 Document Attachment

Base Application, Microsoft.Foundation.Attachment

src/Layers/W1/BaseApp/Foundation/Attachment/DocumentAttachment.Table.al29 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

File Name.OnValidate line 53, trigger

  1. 60callsCodeunit 1173 Document Attachment Mgmt IsDuplicateFile

Document Flow Purchase.OnValidate line 122, trigger

  1. 127raisesOnBeforeValidateDocumentFlowPurchaseIsHandled
  2. 131callsHasContent

Document Flow Sales.OnValidate line 140, trigger

  1. 145raisesOnBeforeValidateDocumentFlowSalesIsHandled
  2. 149callsHasContent

Document Flow Service.OnValidate line 172, trigger

  1. 177raisesOnBeforeValidateDocumentFlowServiceIsHandled
  2. 181callsHasContent

Document Flow Production.OnValidate line 191, trigger

  1. 193callsHasContent

OnInsert line 217, trigger

  1. 222validatesTable 1173 Document Attachment File Extension
  2. 222callsCodeunit 419 File Management GetExtension
  3. 223validatesTable 1173 Document Attachment File Name
  4. 223callsCodeunit 419 File Management GetFileNameWithoutExtension
  5. 227raisesOnInsertOnBeforeCheckDocRefIDIsHandled
  6. 229callsHasContent
  7. 232validatesTable 1173 Document Attachment Attached Date

ImportAttachment line 246

  1. 248callsImportFromStream
  2. 249callsHasContent
  3. 252validatesTable 1173 Document Attachment Attached Date
  4. 256writesTable 1173 Document Attachment Modify

Export line 259

  1. 268raisesOnBeforeExportIsHandled
  2. 275callsHasContent
  3. 278raisesOnBeforeExportAttachment
  4. 280callsCodeunit 4100 Temp Blob CreateOutStream
  5. 281callsExportToStream
  6. 282callsCodeunit 419 File Management BLOBExport

HasPostedDocumentAttachment line 285

  1. 293callsIsPostedDocument

SupportedByFileViewer line 303

  1. 315callsCodeunit 1173 Document Attachment Mgmt IsSupportedByFileViewerExtension
  2. 317callsCodeunit 1173 Document Attachment Mgmt IsSupportedByFileViewerFileName

IsPostedDocument line 324, local

  1. 332raisesOnAfterIsPostedDocument

SaveAttachment line 341

  1. 345raisesOnBeforeSaveAttachment
  2. 350callsCodeunit 4100 Temp Blob HasValue
  3. 353callsCodeunit 4100 Temp Blob CreateInStream
  4. 354callsInsertAttachment

SaveAttachment line 363

  1. 372callsSaveAttachmentFromStream

SaveAttachmentFromStream line 381

  1. 383raisesOnBeforeSaveAttachmentFromStream
  2. 388callsInsertAttachment

InsertAttachment line 391, local

  1. 398callsInitFieldsFromRecRef
  2. 402callsFindUniqueFileName
  3. 402callsCodeunit 419 File Management GetFileNameWithoutExtension
  4. 402callsCodeunit 419 File Management GetExtension
  5. 406validatesTable 1173 Document Attachment File Extension
  6. 406callsCodeunit 419 File Management GetExtension
  7. 407validatesTable 1173 Document Attachment File Name
  8. 407callsCodeunit 419 File Management GetFileNameWithoutExtension
  9. 409raisesOnInsertAttachmentOnBeforeImportStreamIsHandled
  10. 413callsImportFromStream
  11. 414callsHasContent
  12. 418raisesOnBeforeInsertAttachment
  13. 419writesTable 1173 Document Attachment Insert(true)

InitFieldsFromRecRef line 422

  1. 432validatesTable 1173 Document Attachment Table ID
  2. 434callsCodeunit 1173 Document Attachment Mgmt TableHasNumberFieldPrimayKey
  3. 437validatesTable 1173 Document Attachment No.
  4. 440callsCodeunit 1173 Document Attachment Mgmt TableHasDocTypePrimaryKey
  5. 443callsCodeunit 1173 Document Attachment Mgmt TransformAttachmentDocumentTypeValue
  6. 444validatesTable 1173 Document Attachment Document Type
  7. 447callsCodeunit 1173 Document Attachment Mgmt TableHasLineNumberPrimaryKey
  8. 450validatesTable 1173 Document Attachment Line No.
  9. 453callsCodeunit 1173 Document Attachment Mgmt TableHasVATReportConfigCodePrimaryKey
  10. 456validatesTable 1173 Document Attachment VAT Report Config. Code
  11. 459raisesOnAfterInitFieldsFromRecRef

FindUniqueFileName line 462

  1. 469callsCodeunit 1173 Document Attachment Mgmt IsDuplicateFile
  2. 471callsGetNextFileName

VATReturnSubmissionAttachmentsExist line 476

  1. 480callsVATReturnAttachmentsExist

VATReturnResponseAttachmentsExist line 483

  1. 487callsVATReturnAttachmentsExist

DownloadZipFileWithVATReturnSubmissionAttachments line 498

  1. 500callsDownloadZipFileWithVATReturnAttachments

DownloadZipFileWithVATReturnResponseAttachments line 503

  1. 505callsDownloadZipFileWithVATReturnAttachments

DownloadZipFileWithVATReturnAttachments line 508, local

  1. 537callsCodeunit 425 Data Compression CreateZipArchive
  2. 539callsHasContent
  3. 541callsCodeunit 4100 Temp Blob CreateOutStream
  4. 542callsExportToStream
  5. 543callsCodeunit 4100 Temp Blob CreateInStream
  6. 544callsCodeunit 425 Data Compression AddEntry
  7. 547callsCodeunit 4100 Temp Blob CreateOutStream
  8. 548callsCodeunit 425 Data Compression SaveZipArchive
  9. 549callsCodeunit 425 Data Compression CloseZipArchive
  10. 550callsCodeunit 4100 Temp Blob CreateInStream

HasContent line 560

  1. 564raisesOnBeforeHasContentIsHandled

ImportFromStream line 571

  1. 575raisesOnBeforeImportFromStreamIsHandled

ExportToStream line 585

  1. 589raisesOnBeforeExportToStreamIsHandled

GetAsTempBlob line 596

  1. 601raisesOnBeforeGetAsTempBlobIsHandled
  2. 607callsCodeunit 4100 Temp Blob FromRecord

GetContentType line 610

  1. 615raisesOnBeforeGetContentTypeIsHandled

ViewFile line 623

  1. 628callsGetAsTempBlob
  2. 629callsCodeunit 4100 Temp Blob CreateInStream

OpenInOneDrive line 633

  1. 642raisesOnBeforeOpenInOneDriveIsHandled
  2. 646callsCodeunit 419 File Management StripNotsupportChrInFileName
  3. 651callsCodeunit 9510 Document Service Management OpenInOneDriveFromMedia
  4. 653callsCodeunit 9510 Document Service Management EditInOneDriveFromMedia
  5. 655writesTable 1173 Document Attachment Modify
  6. 658callsCodeunit 9510 Document Service Management ShareWithOneDriveFromMedia