Codeunit 5503 Graph Mgt - Attachment Buffer

Base Application, Microsoft.Integration.Graph

src/Layers/W1/BaseApp/Integration/Graph/GraphMgtAttachmentBuffer.Codeunit.al59 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

LoadDocumentAttachments line 61

  1. 70callsTransferDocAttachmentToBuffer

TransferDocAttachmentToBuffer line 74, local

  1. 82callsCodeunit 419 File Management CreateFileNameWithExtension
  2. 86callsConvertDocumentTypeFromDocumentAttachment
  3. 90callsGetDocumentAttachmentDocumentId
  4. 91writesTable 5509 Attachment Entity Buffer Insert
  5. 95callsTable 1173 Document Attachment ExportToStream
  6. 96writesTable 5509 Attachment Entity Buffer Modify
  7. 99callsTable 1173 Document Attachment HasContent
  8. 100callsTable 1173 Document Attachment GetAsTempBlob
  9. 102callsCodeunit 4100 Temp Blob Length
  10. 103writesTable 5509 Attachment Entity Buffer Modify

GetDocumentAttachmentDocumentId line 107, local

  1. 126callsCodeunit 701 Data Type Management FindFieldByName

LoadAttachments line 547

  1. 555writesTable 5509 Attachment Entity Buffer DeleteAll
  2. 557callsIsLinkedAttachment
  3. 558callsLoadUnlinkedAttachmentsToBuffer
  4. 562callsFindParentDocument
  5. 563callsFindIncomingDocument
  6. 566callsIsGLEntry
  7. 567callsGetGLEntryNo
  8. 569callsGetDocumentId
  9. 571callsLoadLinkedAttachmentsToBuffer
  10. 578writesTable 5509 Attachment Entity Buffer Modify(true)

LoadAttachmentsWithDocumentType line 583

  1. 591writesTable 5509 Attachment Entity Buffer DeleteAll
  2. 593callsIsLinkedAttachment
  3. 594callsLoadUnlinkedAttachmentsToBuffer
  4. 598callsFindParentDocumentWithDocumentTypeSafe
  5. 602callsFindIncomingDocument
  6. 605callsGetDocumentId
  7. 607callsLoadLinkedAttachmentsToBuffer
  8. 611callsIsGLEntry
  9. 613writesTable 5509 Attachment Entity Buffer Modify(true)

LoadAttachmentsWithoutDocumentType line 618

  1. 624writesTable 5509 Attachment Entity Buffer DeleteAll
  2. 626callsLoadAttachmentsToBuffer
  3. 630callsIsGLEntry
  4. 632writesTable 5509 Attachment Entity Buffer Modify(true)

PropagateInsertAttachment line 637

  1. 641callsPropagateInsertLinkedAttachment
  2. 643callsThrowErrorIfAny
  3. 644callsPropagateInsertUnlinkedAttachment

PropagateInsertAttachmentSafe line 648

  1. 652callsPropagateInsertLinkedAttachment
  2. 657callsPropagateInsertUnlinkedAttachment

PropagateInsertAttachmentSafeWithDocumentType line 661

  1. 665callsPropagateInsertLinkedAttachmentWithDocumentType
  2. 667callsPropagateInsertUnlinkedAttachment

PropagateInsertAttachmentSafeWithoutDocumentType line 671

  1. 675callsPropagateInsertAttachmentWithoutDocumentType

PropagateInsertLinkedAttachmentWithDocumentType line 680, local

  1. 696callsGetDocumentIdFilter
  2. 697callsGetDocumentTypeFilter
  3. 699callsIsLinkedAttachment
  4. 702callsFindParentDocumentWithDocumentTypeSafe
  5. 706callsVerifyCRUDIsPossibleSafe
  6. 710callsFindOrCreateIncomingDocument
  7. 714callsGetIncrement
  8. 716callsGetIncrement
  9. 726callsGetDocumentId
  10. 727callsTransferToIncomingDocumentAttachment
  11. 728callsFileNameToNameAndExtension
  12. 739writesTable 133 Incoming Document Attachment Insert(true)
  13. 742writesTable 133 Incoming Document Attachment Insert(true)
  14. 745callsFindUnlinkedAttachment
  15. 747writesTable 138 Unlinked Attachment Delete(true)

PropagateInsertAttachmentWithoutDocumentType line 761, local

  1. 770callsFileNameToNameAndExtension
  2. 772writesTable 130 Incoming Document Insert(true)
  3. 776callsGetIncrement
  4. 778callsGetIncrement
  5. 788callsTransferToIncomingDocumentAttachment
  6. 799writesTable 133 Incoming Document Attachment Insert(true)
  7. 802writesTable 133 Incoming Document Attachment Insert(true)

PropagateInsertUnlinkedAttachment line 810, local

  1. 819callsFindUnlinkedAttachment
  2. 822callsTransferToUnlinkedAttachment
  3. 825writesTable 138 Unlinked Attachment Insert(true)
  4. 828writesTable 138 Unlinked Attachment Insert(true)
  5. 833callsFindLinkedAttachment
  6. 836callsDeleteLinkedAttachment

PropagateInsertLinkedAttachment line 846, local

  1. 862callsGetDocumentIdFilter
  2. 863callsGetGLEntryNoFilter
  3. 864callsIsLinkedAttachment
  4. 864callsIsLinkedAttachment
  5. 868callsFindParentDocumentSafe
  6. 870callsFindParentDocumentSafe
  7. 874callsVerifyCRUDIsPossibleSafe
  8. 878callsFindOrCreateIncomingDocument
  9. 882callsGetIncrement
  10. 884callsGetIncrement
  11. 892callsGetDocumentId
  12. 893callsTransferToIncomingDocumentAttachment
  13. 894callsFileNameToNameAndExtension
  14. 904writesTable 133 Incoming Document Attachment Insert(true)
  15. 907writesTable 133 Incoming Document Attachment Insert(true)
  16. 910callsFindUnlinkedAttachment
  17. 912writesTable 138 Unlinked Attachment Delete(true)

PropagateModifyAttachment line 923

  1. 937callsFindUnlinkedAttachment
  2. 939callsTransferToUnlinkedAttachment
  3. 940writesTable 138 Unlinked Attachment Modify(true)
  4. 943callsLinkAttachmentToDocument
  5. 954callsTable 130 Incoming Document GetRecord
  6. 956callsVerifyCRUDIsPossible
  7. 957callsTransferToIncomingDocumentAttachment
  8. 958callsUnlinkAttachmentFromDocument
  9. 961callsGetDocumentIdFilter
  10. 962callsGetGLEntryNoFilter
  11. 964callsFindParentDocument
  12. 966callsFindParentDocument
  13. 967callsFindIncomingDocument
  14. 969callsVerifyCRUDIsPossible
  15. 970callsTransferToIncomingDocumentAttachment
  16. 971writesTable 133 Incoming Document Attachment Modify(true)

PropagateModifyAttachmentWithDocumentType line 979

  1. 994callsFindUnlinkedAttachment
  2. 996callsTransferToUnlinkedAttachment
  3. 997writesTable 138 Unlinked Attachment Modify(true)
  4. 1000callsLinkAttachmentToDocumentWithDocumentType
  5. 1012callsTable 130 Incoming Document GetRecord
  6. 1014callsVerifyCRUDIsPossible
  7. 1015callsTransferToIncomingDocumentAttachment
  8. 1016callsUnlinkAttachmentFromDocument
  9. 1019callsGetDocumentIdFilter
  10. 1020callsGetDocumentTypeFilter
  11. 1022callsFindParentDocumentWithDocumentTypeSafe
  12. 1026callsFindIncomingDocument
  13. 1028callsVerifyCRUDIsPossible
  14. 1029callsTransferToIncomingDocumentAttachment
  15. 1030writesTable 133 Incoming Document Attachment Modify(true)

PropagateModifyAttachmentWithoutDocumentType line 1038

  1. 1047callsTransferToIncomingDocumentAttachment
  2. 1048writesTable 133 Incoming Document Attachment Modify(true)

PropagateDeleteAttachment line 1051

  1. 1063writesTable 1173 Document Attachment Delete(true)
  2. 1067callsFindUnlinkedAttachment
  3. 1068writesTable 138 Unlinked Attachment Delete(true)
  4. 1075callsGetDocumentIdFilter
  5. 1076callsGetGLEntryNoFilter
  6. 1079callsFindParentDocument
  7. 1081callsFindParentDocument
  8. 1082callsFindIncomingDocument
  9. 1084callsVerifyCRUDIsPossible
  10. 1087callsDeleteLinkedAttachment

PropagateDeleteAttachmentWithDocumentType line 1090

  1. 1103writesTable 1173 Document Attachment Delete(true)
  2. 1107callsFindUnlinkedAttachment
  3. 1108writesTable 138 Unlinked Attachment Delete(true)
  4. 1116callsGetDocumentIdFilter
  5. 1117callsGetDocumentTypeFilter
  6. 1118callsFindParentDocumentWithDocumentTypeSafe
  7. 1122callsFindIncomingDocument
  8. 1125callsVerifyCRUDIsPossible
  9. 1126callsDeleteLinkedAttachment

PropagateDeleteAttachmentWithoutDocumentType line 1129

  1. 1138writesTable 1173 Document Attachment Delete(true)
  2. 1142callsFindUnlinkedAttachment
  3. 1143writesTable 138 Unlinked Attachment Delete(true)
  4. 1153callsDeleteLinkedAttachment

DeleteLinkedAttachment line 1156

  1. 1168writesTable 133 Incoming Document Attachment Delete(true)
  2. 1172writesTable 133 Incoming Document Attachment Modify
  3. 1173writesTable 133 Incoming Document Attachment Delete(true)
  4. 1177validatesTable 133 Incoming Document Attachment Default
  5. 1178validatesTable 133 Incoming Document Attachment Main Attachment
  6. 1179writesTable 133 Incoming Document Attachment Modify(true)
  7. 1197writesTable 130 Incoming Document Modify(true)
  8. 1200writesTable 130 Incoming Document Delete(true)

UpdateAttachments line 1204

  1. 1206callsDeleteUnusedAttachments
  2. 1207callsLinkNewAttachmentsToDocument

DeleteUnusedAttachments line 1210, local

  1. 1215callsPropagateDeleteAttachment

InsertFromTempAttachmentEntityBufferToDocumentAttachment line 1219

  1. 1225callsHasRegisteredField
  2. 1226validatesTable 1173 Document Attachment Line No.
  3. 1228callsHasRegisteredField
  4. 1229validatesTable 1173 Document Attachment File Extension
  5. 1229callsCodeunit 419 File Management GetExtension
  6. 1230validatesTable 1173 Document Attachment File Name
  7. 1230callsCodeunit 419 File Management GetFileNameWithoutExtension
  8. 1233callsConvertDocumentTypeToDocumentAttachment
  9. 1234callsSetDocumentAttachmentNo
  10. 1236callsHasRegisteredField
  11. 1237validatesTable 1173 Document Attachment Document Flow Sales
  12. 1239callsHasRegisteredField
  13. 1240validatesTable 1173 Document Attachment Document Flow Purchase
  14. 1242writesTable 1173 Document Attachment Insert

ModifyFromTempAttachmentEntityBufferToDocumentAttachment line 1245

  1. 1253callsHasRegisteredField
  2. 1254callsConvertDocumentTypeToDocumentAttachment
  3. 1258callsHasRegisteredField
  4. 1259callsSetDocumentAttachmentNo
  5. 1263callsHasRegisteredField
  6. 1269writesTable 1173 Document Attachment Rename
  7. 1273callsHasRegisteredField
  8. 1274validatesTable 1173 Document Attachment Document Flow Sales
  9. 1278callsHasRegisteredField
  10. 1279validatesTable 1173 Document Attachment Document Flow Purchase
  11. 1283callsHasRegisteredField
  12. 1284validatesTable 1173 Document Attachment File Extension
  13. 1284callsCodeunit 419 File Management GetExtension
  14. 1285validatesTable 1173 Document Attachment File Name
  15. 1285callsCodeunit 419 File Management GetFileNameWithoutExtension
  16. 1290writesTable 1173 Document Attachment Modify(true)

SetDocumentAttachmentNo line 1293

  1. 1337callsCodeunit 701 Data Type Management FindFieldByName

LinkNewAttachmentsToDocument line 1342, local

  1. 1355callsFindUnlinkedAttachment
  2. 1359callsLinkAttachmentToDocument
  3. 1361callsFindLinkedAttachment
  4. 1365writesTable 5509 Attachment Entity Buffer Modify(true)
  5. 1366callsCopyAttachment
  6. 1368callsNameAndExtensionToFileName
  7. 1370callsLinkAttachmentToDocument
  8. 1373callsCopyAttachment
  9. 1376callsLinkAttachmentToDocument
  10. 1381callsFindLinkedAttachment
  11. 1382callsFileNameToNameAndExtension
  12. 1383writesTable 133 Incoming Document Attachment Modify(true)

LinkAttachmentToDocument line 1388, local

  1. 1397callsTransferFromUnlinkedAttachment
  2. 1400callsRegisterFieldSet
  3. 1401callsRegisterFieldSet
  4. 1402callsRegisterFieldSet
  5. 1403callsPropagateInsertLinkedAttachment

LinkAttachmentToDocumentWithDocumentType line 1406, local

  1. 1415callsTransferFromUnlinkedAttachment
  2. 1419callsRegisterFieldSet
  3. 1420callsRegisterFieldSet
  4. 1421callsRegisterFieldSet
  5. 1422callsPropagateInsertLinkedAttachmentWithDocumentType

UnlinkAttachmentFromDocument line 1425, local

  1. 1430callsTransferFromIncomingDocumentAttachment
  2. 1431callsRegisterFieldSet
  3. 1432callsRegisterFieldSet
  4. 1433callsRegisterFieldSet
  5. 1434callsPropagateInsertUnlinkedAttachment

CopyAttachment line 1437

  1. 1441writesTable 138 Unlinked Attachment Insert(true)

RegisterFieldSet line 1444

  1. 1456writesTable 8450 Field Buffer Insert

IsSalesInvoice line 1522, local

  1. 1529callsGetDocumentType

IsPurchaseInvoice line 1535, local

  1. 1542callsGetDocumentType

IsSalesQuote line 1548, local

  1. 1552callsGetDocumentType

IsSalesOrder line 1556, local

  1. 1560callsGetDocumentType

IsPurchaseOrder line 1564, local

  1. 1568callsGetDocumentType

IsSalesCreditMemo line 1572, local

  1. 1576callsGetDocumentType

IsPurchaseCreditMemo line 1580, local

  1. 1584callsGetDocumentType

GetDocumentId line 1667, local

  1. 1683callsCodeunit 5477 Sales Invoice Aggregator GetSalesInvoiceHeaderId
  2. 1688callsCodeunit 5508 Graph Mgt - Sal. Cr. Memo Buf. GetSalesCrMemoHeaderId
  3. 1693callsCodeunit 5529 Purch. Inv. Aggregator GetPurchaseInvoiceHeaderId
  4. 1703callsCodeunit 5511 Graph Mgt - Purch. Cr. Memo GetPurchaseCrMemoHeaderId

GetGLEntryNo line 1711, local

  1. 1718callsCodeunit 701 Data Type Management FindFieldByName

GetDocumentIdFromAttachmentId line 1723

  1. 1736callsTable 130 Incoming Document GetRecord
  2. 1741callsGetDocumentId

VerifyCRUDIsPossibleSafe line 1802, local

  1. 1822callsGetDocumentId
  2. 1824callsIsGeneralJournalLine
  3. 1833callsIsGLEntry
  4. 1836callsIsGLEntry
  5. 1844callsIsSalesInvoice
  6. 1856callsIsPurchaseInvoice
  7. 1868callsIsSalesQuote
  8. 1880callsIsSalesOrder
  9. 1892callsIsSalesCreditMemo
  10. 1904callsIsPurchaseOrder
  11. 1916callsIsPurchaseCreditMemo

VerifyCRUDIsPossible line 1931, local

  1. 1935callsVerifyCRUDIsPossibleSafe
  2. 1936callsThrowErrorIfAny

FindParentDocumentSafe line 1950, local

  1. 1971callsCodeunit 10 Type Helper Evaluate
  2. 1991callsCodeunit 5477 Sales Invoice Aggregator GetSalesInvoiceHeaderFromId
  3. 2002callsCodeunit 5529 Purch. Inv. Aggregator GetPurchaseInvoiceHeaderFromId

FindParentDocument line 2010, local

  1. 2014callsFindParentDocumentSafe
  2. 2015callsThrowErrorIfAny

FindParentDocumentWithDocumentTypeSafe line 2018, local

  1. 2083callsCodeunit 5477 Sales Invoice Aggregator GetSalesInvoiceHeaderFromId
  2. 2095callsCodeunit 5508 Graph Mgt - Sal. Cr. Memo Buf. GetSalesCrMemoHeaderFromId
  3. 2107callsCodeunit 5529 Purch. Inv. Aggregator GetPurchaseInvoiceHeaderFromId
  4. 2125callsCodeunit 5511 Graph Mgt - Purch. Cr. Memo GetPurchaseCrMemoHeaderFromId

FindIncomingDocument line 2251, local

  1. 2253callsIsPostedDocument
  2. 2253callsIsGLEntry
  3. 2254callsTable 130 Incoming Document FindByDocumentNoAndPostingDate
  4. 2255callsTable 130 Incoming Document FindFromIncomingDocumentEntryNo

FindOrCreateIncomingDocument line 2258, local

  1. 2269callsFindIncomingDocument
  2. 2275callsIsSalesInvoice
  3. 2275callsIsPostedDocument
  4. 2284writesTable 130 Incoming Document Insert(true)
  5. 2288callsIsGeneralJournalLine
  6. 2292writesTable 130 Incoming Document Insert(true)
  7. 2294writesTable 81 Gen. Journal Line Modify
  8. 2299callsIsGLEntry
  9. 2306writesTable 130 Incoming Document Insert(true)
  10. 2318writesTable 130 Incoming Document Insert(true)
  11. 2320writesTable 36 Sales Header Modify
  12. 2324callsIsPurchaseInvoice
  13. 2324callsIsPostedDocument
  14. 2333writesTable 130 Incoming Document Insert(true)
  15. 2345writesTable 130 Incoming Document Insert(true)
  16. 2347writesTable 38 Purchase Header Modify
  17. 2351callsIsSalesCreditMemo
  18. 2351callsIsPostedDocument
  19. 2360writesTable 130 Incoming Document Insert(true)
  20. 2364callsIsPurchaseCreditMemo
  21. 2364callsIsPostedDocument
  22. 2373writesTable 130 Incoming Document Insert(true)

LoadLinkedAttachmentsToBuffer line 2378, local

  1. 2395callsTransferFromIncomingDocumentAttachment
  2. 2398callsCodeunit 4100 Temp Blob FromRecord
  3. 2399callsGetContentLength
  4. 2400writesTable 5509 Attachment Entity Buffer Modify(true)

LoadAttachmentsToBuffer line 2404, local

  1. 2420callsAttachmentLoadUpperLimit
  2. 2421callsAttachmentLoadUpperLimit
  3. 2425callsTransferFromIncomingDocumentAttachment
  4. 2429callsCodeunit 4100 Temp Blob FromRecord
  5. 2430callsGetContentLength
  6. 2431writesTable 5509 Attachment Entity Buffer Modify(true)

LoadUnlinkedAttachmentsToBuffer line 2440, local

  1. 2457callsTransferFromUnlinkedAttachment
  2. 2460callsCodeunit 4100 Temp Blob FromRecord
  3. 2461callsGetContentLength
  4. 2462writesTable 5509 Attachment Entity Buffer Modify(true)

TransferToIncomingDocumentAttachment line 2466, local

  1. 2476callsCodeunit 4100 Temp Blob FromRecord
  2. 2477callsGetContentLength
  3. 2482callsFileNameToNameAndExtension
  4. 2484callsCodeunit 10 Type Helper TransferFieldsWithValidate
  5. 2487validatesTable 133 Incoming Document Attachment Name
  6. 2488validatesTable 133 Incoming Document Attachment File Extension

TransferToUnlinkedAttachment line 2492, local

  1. 2500callsCodeunit 10 Type Helper TransferFieldsWithValidate

TransferFromIncomingDocumentAttachment line 2504

  1. 2509callsNameAndExtensionToFileName
  2. 2511callsTransferDocumentTypeFromIncomingDocument
  3. 2512writesTable 5509 Attachment Entity Buffer Insert(true)

TransferFromIncomingDocumentAttachment line 2515, local

  1. 2521callsNameAndExtensionToFileName
  2. 2523callsTransferDocumentTypeFromIncomingDocument
  3. 2524writesTable 5509 Attachment Entity Buffer Insert(true)

TransferFromUnlinkedAttachment line 2527

  1. 2533writesTable 5509 Attachment Entity Buffer Insert(true)

GetContentLength line 2537

  1. 2541callsCodeunit 4100 Temp Blob HasValue
  2. 2543callsCodeunit 4100 Temp Blob CreateInStream

FileNameToNameAndExtension line 2566, local

  1. 2570callsCodeunit 419 File Management GetExtension
  2. 2571callsCodeunit 419 File Management GetFileNameWithoutExtension