{"title":"Codeunit 5503 Graph Mgt - Attachment Buffer, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/points/","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":"codeunit","id":5503,"name":"Graph Mgt - Attachment Buffer","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5503-graph-mgt-attachment-buffer/source/","path":"src/Layers/W1/BaseApp/Integration/Graph/GraphMgtAttachmentBuffer.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"codeunit:419":{"name":"File Management","url":"https://jonas-paprotka.de/ref/codeunit/419-file-management/"},"table:5509":{"name":"Attachment Entity Buffer","url":"https://jonas-paprotka.de/ref/table/5509-attachment-entity-buffer/"},"table:1173":{"name":"Document Attachment","url":"https://jonas-paprotka.de/ref/table/1173-document-attachment/"},"codeunit:4100":{"name":"Temp Blob","url":"https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/"},"codeunit:701":{"name":"Data Type Management","url":"https://jonas-paprotka.de/ref/codeunit/701-data-type-management/"},"table:133":{"name":"Incoming Document Attachment","url":"https://jonas-paprotka.de/ref/table/133-incoming-document-attachment/"},"table:138":{"name":"Unlinked Attachment","url":"https://jonas-paprotka.de/ref/table/138-unlinked-attachment/"},"table:130":{"name":"Incoming Document","url":"https://jonas-paprotka.de/ref/table/130-incoming-document/"},"table:8450":{"name":"Field Buffer","url":"https://jonas-paprotka.de/ref/table/8450-field-buffer/"},"codeunit:5477":{"name":"Sales Invoice Aggregator","url":"https://jonas-paprotka.de/ref/codeunit/5477-sales-invoice-aggregator/"},"codeunit:5508":{"name":"Graph Mgt - Sal. Cr. Memo Buf.","url":"https://jonas-paprotka.de/ref/codeunit/5508-graph-mgt-sal-cr-memo-buf/"},"codeunit:5529":{"name":"Purch. Inv. Aggregator","url":"https://jonas-paprotka.de/ref/codeunit/5529-purch-inv-aggregator/"},"codeunit:5511":{"name":"Graph Mgt - Purch. Cr. Memo","url":"https://jonas-paprotka.de/ref/codeunit/5511-graph-mgt-purch-cr-memo/"},"codeunit:10":{"name":"Type Helper","url":"https://jonas-paprotka.de/ref/codeunit/10-type-helper/"},"table:81":{"name":"Gen. Journal Line","url":"https://jonas-paprotka.de/ref/table/81-gen-journal-line/"},"table:36":{"name":"Sales Header","url":"https://jonas-paprotka.de/ref/table/36-sales-header/"},"table:38":{"name":"Purchase Header","url":"https://jonas-paprotka.de/ref/table/38-purchase-header/"}},"procs":[{"name":"LoadDocumentAttachments","line":61,"kind":"procedure","params":2,"steps":[[70,"call","TransferDocAttachmentToBuffer",3]]},{"name":"TransferDocAttachmentToBuffer","line":74,"kind":"procedure","access":"local","params":3,"steps":[[82,"ext","codeunit",419,"CreateFileNameWithExtension",2],[86,"call","ConvertDocumentTypeFromDocumentAttachment",2],[90,"call","GetDocumentAttachmentDocumentId",1],[91,"write",5509,"Insert"],[95,"ext","table",1173,"ExportToStream",1],[96,"write",5509,"Modify"],[99,"ext","table",1173,"HasContent",0],[100,"ext","table",1173,"GetAsTempBlob",1],[102,"ext","codeunit",4100,"Length",0],[103,"write",5509,"Modify"]]},{"name":"GetDocumentAttachmentDocumentId","line":107,"kind":"procedure","access":"local","params":1,"steps":[[126,"ext","codeunit",701,"FindFieldByName",3]]},{"name":"LoadAttachments","line":547,"kind":"procedure","params":3,"steps":[[555,"write",5509,"DeleteAll"],[557,"call","IsLinkedAttachment",1],[558,"call","LoadUnlinkedAttachmentsToBuffer",2],[562,"call","FindParentDocument",2],[563,"call","FindIncomingDocument",2],[566,"call","IsGLEntry",1],[567,"call","GetGLEntryNo",1],[569,"call","GetDocumentId",1],[571,"call","LoadLinkedAttachmentsToBuffer",3],[578,"write",5509,"Modify",1]]},{"name":"LoadAttachmentsWithDocumentType","line":583,"kind":"procedure","params":4,"steps":[[591,"write",5509,"DeleteAll"],[593,"call","IsLinkedAttachment",1],[594,"call","LoadUnlinkedAttachmentsToBuffer",2],[598,"call","FindParentDocumentWithDocumentTypeSafe",4],[602,"call","FindIncomingDocument",2],[605,"call","GetDocumentId",1],[607,"call","LoadLinkedAttachmentsToBuffer",3],[611,"call","IsGLEntry",1],[613,"write",5509,"Modify",1]]},{"name":"LoadAttachmentsWithoutDocumentType","line":618,"kind":"procedure","params":2,"steps":[[624,"write",5509,"DeleteAll"],[626,"call","LoadAttachmentsToBuffer",2],[630,"call","IsGLEntry",1],[632,"write",5509,"Modify",1]]},{"name":"PropagateInsertAttachment","line":637,"kind":"procedure","params":2,"steps":[[641,"call","PropagateInsertLinkedAttachment",3],[643,"call","ThrowErrorIfAny",1],[644,"call","PropagateInsertUnlinkedAttachment",2]]},{"name":"PropagateInsertAttachmentSafe","line":648,"kind":"procedure","params":2,"steps":[[652,"call","PropagateInsertLinkedAttachment",3],[657,"call","PropagateInsertUnlinkedAttachment",2]]},{"name":"PropagateInsertAttachmentSafeWithDocumentType","line":661,"kind":"procedure","params":2,"steps":[[665,"call","PropagateInsertLinkedAttachmentWithDocumentType",3],[667,"call","PropagateInsertUnlinkedAttachment",2]]},{"name":"PropagateInsertAttachmentSafeWithoutDocumentType","line":671,"kind":"procedure","params":2,"steps":[[675,"call","PropagateInsertAttachmentWithoutDocumentType",3]]},{"name":"PropagateInsertLinkedAttachmentWithDocumentType","line":680,"kind":"procedure","access":"local","params":3,"steps":[[696,"call","GetDocumentIdFilter",1],[697,"call","GetDocumentTypeFilter",1],[699,"call","IsLinkedAttachment",1],[702,"call","FindParentDocumentWithDocumentTypeSafe",4],[706,"call","VerifyCRUDIsPossibleSafe",2],[710,"call","FindOrCreateIncomingDocument",2],[714,"call","GetIncrement",0],[716,"call","GetIncrement",0],[726,"call","GetDocumentId",1],[727,"call","TransferToIncomingDocumentAttachment",4],[728,"call","FileNameToNameAndExtension",3],[739,"write",133,"Insert",1],[742,"write",133,"Insert",1],[745,"call","FindUnlinkedAttachment",2],[747,"write",138,"Delete",1]]},{"name":"PropagateInsertAttachmentWithoutDocumentType","line":761,"kind":"procedure","access":"local","params":3,"steps":[[770,"call","FileNameToNameAndExtension",3],[772,"write",130,"Insert",1],[776,"call","GetIncrement",0],[778,"call","GetIncrement",0],[788,"call","TransferToIncomingDocumentAttachment",4],[799,"write",133,"Insert",1],[802,"write",133,"Insert",1]]},{"name":"PropagateInsertUnlinkedAttachment","line":810,"kind":"procedure","access":"local","params":2,"steps":[[819,"call","FindUnlinkedAttachment",2],[822,"call","TransferToUnlinkedAttachment",4],[825,"write",138,"Insert",1],[828,"write",138,"Insert",1],[833,"call","FindLinkedAttachment",2],[836,"call","DeleteLinkedAttachment",2]]},{"name":"PropagateInsertLinkedAttachment","line":846,"kind":"procedure","access":"local","params":3,"steps":[[862,"call","GetDocumentIdFilter",1],[863,"call","GetGLEntryNoFilter",1],[864,"call","IsLinkedAttachment",1],[864,"call","IsLinkedAttachment",1],[868,"call","FindParentDocumentSafe",3],[870,"call","FindParentDocumentSafe",3],[874,"call","VerifyCRUDIsPossibleSafe",2],[878,"call","FindOrCreateIncomingDocument",2],[882,"call","GetIncrement",0],[884,"call","GetIncrement",0],[892,"call","GetDocumentId",1],[893,"call","TransferToIncomingDocumentAttachment",4],[894,"call","FileNameToNameAndExtension",3],[904,"write",133,"Insert",1],[907,"write",133,"Insert",1],[910,"call","FindUnlinkedAttachment",2],[912,"write",138,"Delete",1]]},{"name":"PropagateModifyAttachment","line":923,"kind":"procedure","params":2,"steps":[[937,"call","FindUnlinkedAttachment",2],[939,"call","TransferToUnlinkedAttachment",4],[940,"write",138,"Modify",1],[943,"call","LinkAttachmentToDocument",3],[954,"ext","table",130,"GetRecord",1],[956,"call","VerifyCRUDIsPossible",1],[957,"call","TransferToIncomingDocumentAttachment",4],[958,"call","UnlinkAttachmentFromDocument",1],[961,"call","GetDocumentIdFilter",1],[962,"call","GetGLEntryNoFilter",1],[964,"call","FindParentDocument",2],[966,"call","FindParentDocument",2],[967,"call","FindIncomingDocument",2],[969,"call","VerifyCRUDIsPossible",1],[970,"call","TransferToIncomingDocumentAttachment",4],[971,"write",133,"Modify",1]]},{"name":"PropagateModifyAttachmentWithDocumentType","line":979,"kind":"procedure","params":2,"steps":[[994,"call","FindUnlinkedAttachment",2],[996,"call","TransferToUnlinkedAttachment",4],[997,"write",138,"Modify",1],[1000,"call","LinkAttachmentToDocumentWithDocumentType",4],[1012,"ext","table",130,"GetRecord",1],[1014,"call","VerifyCRUDIsPossible",1],[1015,"call","TransferToIncomingDocumentAttachment",4],[1016,"call","UnlinkAttachmentFromDocument",1],[1019,"call","GetDocumentIdFilter",1],[1020,"call","GetDocumentTypeFilter",1],[1022,"call","FindParentDocumentWithDocumentTypeSafe",4],[1026,"call","FindIncomingDocument",2],[1028,"call","VerifyCRUDIsPossible",1],[1029,"call","TransferToIncomingDocumentAttachment",4],[1030,"write",133,"Modify",1]]},{"name":"PropagateModifyAttachmentWithoutDocumentType","line":1038,"kind":"procedure","params":2,"steps":[[1047,"call","TransferToIncomingDocumentAttachment",4],[1048,"write",133,"Modify",1]]},{"name":"PropagateDeleteAttachment","line":1051,"kind":"procedure","params":1,"steps":[[1063,"write",1173,"Delete",1],[1067,"call","FindUnlinkedAttachment",2],[1068,"write",138,"Delete",1],[1075,"call","GetDocumentIdFilter",1],[1076,"call","GetGLEntryNoFilter",1],[1079,"call","FindParentDocument",2],[1081,"call","FindParentDocument",2],[1082,"call","FindIncomingDocument",2],[1084,"call","VerifyCRUDIsPossible",1],[1087,"call","DeleteLinkedAttachment",2]]},{"name":"PropagateDeleteAttachmentWithDocumentType","line":1090,"kind":"procedure","params":1,"steps":[[1103,"write",1173,"Delete",1],[1107,"call","FindUnlinkedAttachment",2],[1108,"write",138,"Delete",1],[1116,"call","GetDocumentIdFilter",1],[1117,"call","GetDocumentTypeFilter",1],[1118,"call","FindParentDocumentWithDocumentTypeSafe",4],[1122,"call","FindIncomingDocument",2],[1125,"call","VerifyCRUDIsPossible",1],[1126,"call","DeleteLinkedAttachment",2]]},{"name":"PropagateDeleteAttachmentWithoutDocumentType","line":1129,"kind":"procedure","params":1,"steps":[[1138,"write",1173,"Delete",1],[1142,"call","FindUnlinkedAttachment",2],[1143,"write",138,"Delete",1],[1153,"call","DeleteLinkedAttachment",2]]},{"name":"DeleteLinkedAttachment","line":1156,"kind":"procedure","params":2,"steps":[[1168,"write",133,"Delete",1],[1172,"write",133,"Modify"],[1173,"write",133,"Delete",1],[1177,"validate",133,"Default"],[1178,"validate",133,"Main Attachment"],[1179,"write",133,"Modify",1],[1197,"write",130,"Modify",1],[1200,"write",130,"Delete",1]]},{"name":"UpdateAttachments","line":1204,"kind":"procedure","params":3,"steps":[[1206,"call","DeleteUnusedAttachments",2],[1207,"call","LinkNewAttachmentsToDocument",3]]},{"name":"DeleteUnusedAttachments","line":1210,"kind":"procedure","access":"local","params":2,"steps":[[1215,"call","PropagateDeleteAttachment",1]]},{"name":"InsertFromTempAttachmentEntityBufferToDocumentAttachment","line":1219,"kind":"procedure","params":3,"steps":[[1225,"call","HasRegisteredField",2],[1226,"validate",1173,"Line No."],[1228,"call","HasRegisteredField",2],[1229,"validate",1173,"File Extension"],[1229,"ext","codeunit",419,"GetExtension",1],[1230,"validate",1173,"File Name"],[1230,"ext","codeunit",419,"GetFileNameWithoutExtension",1],[1233,"call","ConvertDocumentTypeToDocumentAttachment",2],[1234,"call","SetDocumentAttachmentNo",2],[1236,"call","HasRegisteredField",2],[1237,"validate",1173,"Document Flow Sales"],[1239,"call","HasRegisteredField",2],[1240,"validate",1173,"Document Flow Purchase"],[1242,"write",1173,"Insert"]]},{"name":"ModifyFromTempAttachmentEntityBufferToDocumentAttachment","line":1245,"kind":"procedure","params":3,"steps":[[1253,"call","HasRegisteredField",2],[1254,"call","ConvertDocumentTypeToDocumentAttachment",2],[1258,"call","HasRegisteredField",2],[1259,"call","SetDocumentAttachmentNo",2],[1263,"call","HasRegisteredField",2],[1269,"write",1173,"Rename"],[1273,"call","HasRegisteredField",2],[1274,"validate",1173,"Document Flow Sales"],[1278,"call","HasRegisteredField",2],[1279,"validate",1173,"Document Flow Purchase"],[1283,"call","HasRegisteredField",2],[1284,"validate",1173,"File Extension"],[1284,"ext","codeunit",419,"GetExtension",1],[1285,"validate",1173,"File Name"],[1285,"ext","codeunit",419,"GetFileNameWithoutExtension",1],[1290,"write",1173,"Modify",1]]},{"name":"SetDocumentAttachmentNo","line":1293,"kind":"procedure","params":2,"steps":[[1337,"ext","codeunit",701,"FindFieldByName",3]]},{"name":"LinkNewAttachmentsToDocument","line":1342,"kind":"procedure","access":"local","params":3,"steps":[[1355,"call","FindUnlinkedAttachment",2],[1359,"call","LinkAttachmentToDocument",3],[1361,"call","FindLinkedAttachment",2],[1365,"write",5509,"Modify",1],[1366,"call","CopyAttachment",3],[1368,"call","NameAndExtensionToFileName",2],[1370,"call","LinkAttachmentToDocument",3],[1373,"call","CopyAttachment",3],[1376,"call","LinkAttachmentToDocument",3],[1381,"call","FindLinkedAttachment",2],[1382,"call","FileNameToNameAndExtension",3],[1383,"write",133,"Modify",1]]},{"name":"LinkAttachmentToDocument","line":1388,"kind":"procedure","access":"local","params":3,"steps":[[1397,"call","TransferFromUnlinkedAttachment",2],[1400,"call","RegisterFieldSet",2],[1401,"call","RegisterFieldSet",2],[1402,"call","RegisterFieldSet",2],[1403,"call","PropagateInsertLinkedAttachment",3]]},{"name":"LinkAttachmentToDocumentWithDocumentType","line":1406,"kind":"procedure","access":"local","params":4,"steps":[[1415,"call","TransferFromUnlinkedAttachment",2],[1419,"call","RegisterFieldSet",2],[1420,"call","RegisterFieldSet",2],[1421,"call","RegisterFieldSet",2],[1422,"call","PropagateInsertLinkedAttachmentWithDocumentType",3]]},{"name":"UnlinkAttachmentFromDocument","line":1425,"kind":"procedure","access":"local","params":1,"steps":[[1430,"call","TransferFromIncomingDocumentAttachment",3],[1431,"call","RegisterFieldSet",2],[1432,"call","RegisterFieldSet",2],[1433,"call","RegisterFieldSet",2],[1434,"call","PropagateInsertUnlinkedAttachment",2]]},{"name":"CopyAttachment","line":1437,"kind":"procedure","params":3,"steps":[[1441,"write",138,"Insert",1]]},{"name":"RegisterFieldSet","line":1444,"kind":"procedure","params":2,"steps":[[1456,"write",8450,"Insert"]]},{"name":"IsSalesInvoice","line":1522,"kind":"procedure","access":"local","params":1,"steps":[[1529,"call","GetDocumentType",2]]},{"name":"IsPurchaseInvoice","line":1535,"kind":"procedure","access":"local","params":1,"steps":[[1542,"call","GetDocumentType",2]]},{"name":"IsSalesQuote","line":1548,"kind":"procedure","access":"local","params":1,"steps":[[1552,"call","GetDocumentType",2]]},{"name":"IsSalesOrder","line":1556,"kind":"procedure","access":"local","params":1,"steps":[[1560,"call","GetDocumentType",2]]},{"name":"IsPurchaseOrder","line":1564,"kind":"procedure","access":"local","params":1,"steps":[[1568,"call","GetDocumentType",2]]},{"name":"IsSalesCreditMemo","line":1572,"kind":"procedure","access":"local","params":1,"steps":[[1576,"call","GetDocumentType",2]]},{"name":"IsPurchaseCreditMemo","line":1580,"kind":"procedure","access":"local","params":1,"steps":[[1584,"call","GetDocumentType",2]]},{"name":"GetDocumentId","line":1667,"kind":"procedure","access":"local","params":1,"steps":[[1683,"ext","codeunit",5477,"GetSalesInvoiceHeaderId",1],[1688,"ext","codeunit",5508,"GetSalesCrMemoHeaderId",1],[1693,"ext","codeunit",5529,"GetPurchaseInvoiceHeaderId",1],[1703,"ext","codeunit",5511,"GetPurchaseCrMemoHeaderId",1]]},{"name":"GetGLEntryNo","line":1711,"kind":"procedure","access":"local","params":1,"steps":[[1718,"ext","codeunit",701,"FindFieldByName",3]]},{"name":"GetDocumentIdFromAttachmentId","line":1723,"kind":"procedure","params":1,"steps":[[1736,"ext","table",130,"GetRecord",1],[1741,"call","GetDocumentId",1]]},{"name":"VerifyCRUDIsPossibleSafe","line":1802,"kind":"procedure","access":"local","params":2,"steps":[[1822,"call","GetDocumentId",1],[1824,"call","IsGeneralJournalLine",1],[1833,"call","IsGLEntry",1],[1836,"call","IsGLEntry",1],[1844,"call","IsSalesInvoice",1],[1856,"call","IsPurchaseInvoice",1],[1868,"call","IsSalesQuote",1],[1880,"call","IsSalesOrder",1],[1892,"call","IsSalesCreditMemo",1],[1904,"call","IsPurchaseOrder",1],[1916,"call","IsPurchaseCreditMemo",1]]},{"name":"VerifyCRUDIsPossible","line":1931,"kind":"procedure","access":"local","params":1,"steps":[[1935,"call","VerifyCRUDIsPossibleSafe",2],[1936,"call","ThrowErrorIfAny",1]]},{"name":"FindParentDocumentSafe","line":1950,"kind":"procedure","access":"local","params":3,"steps":[[1971,"ext","codeunit",10,"Evaluate",4],[1991,"ext","codeunit",5477,"GetSalesInvoiceHeaderFromId",2],[2002,"ext","codeunit",5529,"GetPurchaseInvoiceHeaderFromId",2]]},{"name":"FindParentDocument","line":2010,"kind":"procedure","access":"local","params":2,"steps":[[2014,"call","FindParentDocumentSafe",3],[2015,"call","ThrowErrorIfAny",1]]},{"name":"FindParentDocumentWithDocumentTypeSafe","line":2018,"kind":"procedure","access":"local","params":4,"steps":[[2083,"ext","codeunit",5477,"GetSalesInvoiceHeaderFromId",2],[2095,"ext","codeunit",5508,"GetSalesCrMemoHeaderFromId",2],[2107,"ext","codeunit",5529,"GetPurchaseInvoiceHeaderFromId",2],[2125,"ext","codeunit",5511,"GetPurchaseCrMemoHeaderFromId",2]]},{"name":"FindIncomingDocument","line":2251,"kind":"procedure","access":"local","params":2,"steps":[[2253,"call","IsPostedDocument",1],[2253,"call","IsGLEntry",1],[2254,"ext","table",130,"FindByDocumentNoAndPostingDate",2],[2255,"ext","table",130,"FindFromIncomingDocumentEntryNo",2]]},{"name":"FindOrCreateIncomingDocument","line":2258,"kind":"procedure","access":"local","params":2,"steps":[[2269,"call","FindIncomingDocument",2],[2275,"call","IsSalesInvoice",1],[2275,"call","IsPostedDocument",1],[2284,"write",130,"Insert",1],[2288,"call","IsGeneralJournalLine",1],[2292,"write",130,"Insert",1],[2294,"write",81,"Modify"],[2299,"call","IsGLEntry",1],[2306,"write",130,"Insert",1],[2318,"write",130,"Insert",1],[2320,"write",36,"Modify"],[2324,"call","IsPurchaseInvoice",1],[2324,"call","IsPostedDocument",1],[2333,"write",130,"Insert",1],[2345,"write",130,"Insert",1],[2347,"write",38,"Modify"],[2351,"call","IsSalesCreditMemo",1],[2351,"call","IsPostedDocument",1],[2360,"write",130,"Insert",1],[2364,"call","IsPurchaseCreditMemo",1],[2364,"call","IsPostedDocument",1],[2373,"write",130,"Insert",1]]},{"name":"LoadLinkedAttachmentsToBuffer","line":2378,"kind":"procedure","access":"local","params":3,"steps":[[2395,"call","TransferFromIncomingDocumentAttachment",2],[2398,"ext","codeunit",4100,"FromRecord",2],[2399,"call","GetContentLength",1],[2400,"write",5509,"Modify",1]]},{"name":"LoadAttachmentsToBuffer","line":2404,"kind":"procedure","access":"local","params":2,"steps":[[2420,"call","AttachmentLoadUpperLimit",0],[2421,"call","AttachmentLoadUpperLimit",0],[2425,"call","TransferFromIncomingDocumentAttachment",2],[2429,"ext","codeunit",4100,"FromRecord",2],[2430,"call","GetContentLength",1],[2431,"write",5509,"Modify",1]]},{"name":"LoadUnlinkedAttachmentsToBuffer","line":2440,"kind":"procedure","access":"local","params":2,"steps":[[2457,"call","TransferFromUnlinkedAttachment",2],[2460,"ext","codeunit",4100,"FromRecord",2],[2461,"call","GetContentLength",1],[2462,"write",5509,"Modify",1]]},{"name":"TransferToIncomingDocumentAttachment","line":2466,"kind":"procedure","access":"local","params":4,"steps":[[2476,"ext","codeunit",4100,"FromRecord",2],[2477,"call","GetContentLength",1],[2482,"call","FileNameToNameAndExtension",3],[2484,"ext","codeunit",10,"TransferFieldsWithValidate",3],[2487,"validate",133,"Name"],[2488,"validate",133,"File Extension"]]},{"name":"TransferToUnlinkedAttachment","line":2492,"kind":"procedure","access":"local","params":4,"steps":[[2500,"ext","codeunit",10,"TransferFieldsWithValidate",3]]},{"name":"TransferFromIncomingDocumentAttachment","line":2504,"kind":"procedure","params":2,"steps":[[2509,"call","NameAndExtensionToFileName",2],[2511,"call","TransferDocumentTypeFromIncomingDocument",2],[2512,"write",5509,"Insert",1]]},{"name":"TransferFromIncomingDocumentAttachment","line":2515,"kind":"procedure","access":"local","params":3,"steps":[[2521,"call","NameAndExtensionToFileName",2],[2523,"call","TransferDocumentTypeFromIncomingDocument",2],[2524,"write",5509,"Insert",1]]},{"name":"TransferFromUnlinkedAttachment","line":2527,"kind":"procedure","params":2,"steps":[[2533,"write",5509,"Insert",1]]},{"name":"GetContentLength","line":2537,"kind":"procedure","params":1,"steps":[[2541,"ext","codeunit",4100,"HasValue",0],[2543,"ext","codeunit",4100,"CreateInStream",1]]},{"name":"FileNameToNameAndExtension","line":2566,"kind":"procedure","access":"local","params":3,"steps":[[2570,"ext","codeunit",419,"GetExtension",1],[2571,"ext","codeunit",419,"GetFileNameWithoutExtension",1]]}]}