{"title":"Codeunit 1411 Doc. Exch. Links, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/1411-doc-exch-links/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":1411,"name":"Doc. Exch. Links","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/1411-doc-exch-links/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/1411-doc-exch-links/source/","path":"src/Layers/W1/BaseApp/eServices/EDocument/DocExchLinks.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:1410":{"name":"Doc. Exch. Service Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1410-doc-exch-service-mgt/"},"table:114":{"name":"Sales Cr.Memo Header","url":"https://jonas-paprotka.de/ref/table/114-sales-cr-memo-header/"},"table:112":{"name":"Sales Invoice Header","url":"https://jonas-paprotka.de/ref/table/112-sales-invoice-header/"}},"procs":[{"name":"UpdateDocumentRecord","line":23,"kind":"procedure","params":3,"steps":[[28,"event","OnBeforeUpdateDocumentRecord",1],[35,"call","SetInvoiceDocSent",3],[37,"call","SetCrMemoDocSent",3]]},{"name":"CheckAndUpdateDocExchCrMemoStatus","line":44,"kind":"procedure","params":1,"steps":[[48,"call","MapDocExchStatusToSalesCMStatus",1],[49,"ext","codeunit",1410,"GetDocumentStatus",3],[51,"validate",114,"Document Exchange Status"],[52,"write",114,"Modify",1]]},{"name":"CheckAndUpdateDocExchInvoiceStatus","line":57,"kind":"procedure","params":1,"steps":[[61,"call","MapDocExchStatusToSalesInvStatus",1],[62,"ext","codeunit",1410,"GetDocumentStatus",3],[64,"validate",112,"Document Exchange Status"],[65,"write",112,"Modify",1]]},{"name":"SetInvoiceDocSent","line":71,"kind":"procedure","access":"local","params":3,"steps":[[76,"validate",112,"Document Exchange Identifier"],[78,"validate",112,"Doc. Exch. Original Identifier"],[80,"validate",112,"Document Exchange Status"],[81,"write",112,"Modify",1]]},{"name":"SetCrMemoDocSent","line":84,"kind":"procedure","access":"local","params":3,"steps":[[89,"validate",114,"Document Exchange Identifier"],[91,"validate",114,"Doc. Exch. Original Identifier"],[93,"validate",114,"Document Exchange Status"],[94,"write",114,"Modify",1]]}]}