{"title":"Codeunit 5979 Service-Post and Send, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/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":5979,"name":"Service-Post and Send","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/source/","path":"src/Layers/W1/BaseApp/Service/Posting/ServicePostandSend.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:60":{"name":"Document Sending Profile","url":"https://jonas-paprotka.de/ref/table/60-document-sending-profile/"},"codeunit:5980":{"name":"Service-Post","url":"https://jonas-paprotka.de/ref/codeunit/5980-service-post/"},"page:365":{"name":"Post and Send Confirmation","url":"https://jonas-paprotka.de/ref/page/365-post-and-send-confirmation/"},"table:61":{"name":"Electronic Document Format","url":"https://jonas-paprotka.de/ref/table/61-electronic-document-format/"},"codeunit:6464":{"name":"Serv. Electr. Doc. Format","url":"https://jonas-paprotka.de/ref/codeunit/6464-serv-electr-doc-format/"}},"procs":[{"name":"OnRun","line":15,"kind":"trigger","steps":[[18,"call","Code",0]]},{"name":"Code","line":26,"kind":"procedure","access":"local","params":0,"steps":[[31,"event","OnBeforeCode",0],[36,"call","ConfirmPostAndSend",2],[42,"ext","table",60,"CheckElectronicSendingEnabled",0],[43,"call","ValidateElectronicFormats",1],[45,"run","codeunit",5980],[47,"event","OnAfterPostAndBeforeSend",0],[50,"ext","codeunit",5980,"SendPostedDocumentRecord",2],[52,"event","OnAfterCode",0]]},{"name":"ConfirmPostAndSend","line":55,"kind":"procedure","access":"local","params":2,"steps":[[63,"event","OnConfirmPostAndSendOnBeforeGetDocumentSendingProfile",1],[66,"ext","table",60,"GetDefault",1],[70,"ext","table",60,"SetDocumentUsage",1],[71,"write",60,"Insert"],[72,"run","page",365]]},{"name":"ValidateElectronicFormats","line":78,"kind":"procedure","access":"local","params":1,"steps":[[86,"ext","table",61,"ValidateElectronicFormat",1],[87,"ext","codeunit",6464,"ValidateElectronicServiceDocument",2],[93,"ext","table",61,"ValidateElectronicFormat",1],[94,"ext","codeunit",6464,"ValidateElectronicServiceDocument",2],[98,"ext","table",61,"ValidateElectronicFormat",1],[99,"ext","codeunit",6464,"ValidateElectronicServiceDocument",2]]}]}