{"title":"Codeunit 6468 Serv. Doc. Exchange Mgt., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/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":6468,"name":"Serv. Doc. Exchange Mgt.","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/6468-serv-doc-exchange-mgt/source/","path":"src/Layers/W1/BaseApp/Service/EServices/EDocument/ServDocExchangeMgt.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":{"table:5992":{"name":"Service Invoice Header","url":"https://jonas-paprotka.de/ref/table/5992-service-invoice-header/"},"table:5994":{"name":"Service Cr.Memo Header","url":"https://jonas-paprotka.de/ref/table/5994-service-cr-memo-header/"},"codeunit:1410":{"name":"Doc. Exch. Service Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1410-doc-exch-service-mgt/"},"codeunit:134":{"name":"Import Attachment - Inc. Doc.","url":"https://jonas-paprotka.de/ref/codeunit/134-import-attachment-inc-doc/"},"table:5900":{"name":"Service Header","url":"https://jonas-paprotka.de/ref/table/5900-service-header/"},"table:130":{"name":"Incoming Document","url":"https://jonas-paprotka.de/ref/table/130-incoming-document/"}},"procs":[{"name":"OnBeforeUpdateDocumentRecord","line":21,"kind":"procedure","access":"local","params":4,"steps":[[26,"call","SetServiceInvoiceDocSent",3],[31,"call","SetServiceCrMemoDocSent",3]]},{"name":"SetServiceInvoiceDocSent","line":37,"kind":"procedure","access":"local","params":3,"steps":[[43,"validate",5992,"Document Exchange Identifier"],[45,"validate",5992,"Doc. Exch. Original Identifier"],[47,"validate",5992,"Document Exchange Status"],[48,"write",5992,"Modify",1]]},{"name":"SetServiceCrMemoDocSent","line":51,"kind":"procedure","access":"local","params":3,"steps":[[57,"validate",5994,"Document Exchange Identifier"],[59,"validate",5994,"Doc. Exch. Original Identifier"],[61,"validate",5994,"Document Exchange Status"],[62,"write",5994,"Modify",1]]},{"name":"CheckAndUpdateDocExchServiceInvoiceStatus","line":66,"kind":"procedure","access":"internal","params":1,"steps":[[70,"call","MapDocExchStatusToServiceInvStatus",1],[71,"ext","codeunit",1410,"GetDocumentStatus",3],[73,"validate",5992,"Document Exchange Status"],[74,"write",5992,"Modify",1]]},{"name":"CheckAndUpdateDocExchServiceCrMemoStatus","line":79,"kind":"procedure","access":"internal","params":1,"steps":[[83,"call","MapDocExchStatusToServiceCMStatus",1],[84,"ext","codeunit",1410,"GetDocumentStatus",3],[86,"validate",5994,"Document Exchange Status"],[87,"write",5994,"Modify",1]]},{"name":"OnAfterCheckPostedDocs","line":120,"kind":"procedure","access":"local","params":0,"steps":[[122,"call","CheckPostedServiceInvoices",0],[123,"call","CheckPostedServiceCrMemos",0]]},{"name":"CheckPostedServiceInvoices","line":126,"kind":"procedure","access":"local","params":0,"steps":[[137,"call","CheckAndUpdateDocExchServiceInvoiceStatus",1]]},{"name":"CheckPostedServiceCrMemos","line":142,"kind":"procedure","access":"local","params":0,"steps":[[153,"call","CheckAndUpdateDocExchServiceCrMemoStatus",1]]},{"name":"OnBeforeCheckAndUpdateDocExchStatus","line":159,"kind":"procedure","access":"local","params":2,"steps":[[168,"call","CheckAndUpdateDocExchServiceInvoiceStatus",1],[174,"call","CheckAndUpdateDocExchServiceCrMemoStatus",1]]},{"name":"OnBeforeGetPostSalesURL","line":220,"kind":"procedure","access":"local","params":3,"steps":[[224,"ext","codeunit",1410,"GetPostSalesInvURL",0],[226,"ext","codeunit",1410,"GetPostSalesCrMemoURL",0]]},{"name":"OnBeforeSetFiltersFromMainRecord","line":231,"kind":"procedure","access":"local","params":3,"steps":[[240,"call","GetServiceIncomingDocumentType",1]]},{"name":"OnBeforeCreateNewSalesPurchIncomingDoc","line":248,"kind":"procedure","access":"local","params":3,"steps":[[268,"ext","codeunit",134,"CreateIncomingDocumentExtended",5],[270,"write",5900,"Modify"]]},{"name":"OnAfterClearRelatedRecords","line":307,"kind":"procedure","access":"local","params":2,"steps":[[316,"write",5900,"ModifyAll"]]},{"name":"SetServiceDoc","line":321,"kind":"procedure","params":2,"steps":[[326,"ext","table",130,"TestReadyForProcessing",0],[327,"ext","table",130,"TestIfAlreadyExists",0],[334,"write",130,"Modify"],[335,"ext","table",130,"DocLinkExists",1],[336,"ext","table",130,"GetURL",0]]},{"name":"OnAfterGetRelatedRecordCaption","line":379,"kind":"procedure","access":"local","params":2,"steps":[[385,"ext","table",130,"GetRecordCaption",1]]},{"name":"GetServiceIncomingDocumentType","line":424,"kind":"procedure","params":1,"steps":[[439,"event","OnGetServiceIncomingDocumentType",1]]}]}