{"title":"Codeunit 89 Sales-Post + Email, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/89-sales-post-email/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":89,"name":"Sales-Post + Email","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/89-sales-post-email/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/89-sales-post-email/source/","path":"src/Layers/W1/BaseApp/Sales/Posting/SalesPostEmail.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:80":{"name":"Sales-Post","url":"https://jonas-paprotka.de/ref/codeunit/80-sales-post/"},"table:112":{"name":"Sales Invoice Header","url":"https://jonas-paprotka.de/ref/table/112-sales-invoice-header/"},"table:114":{"name":"Sales Cr.Memo Header","url":"https://jonas-paprotka.de/ref/table/114-sales-cr-memo-header/"},"codeunit:27":{"name":"Confirm Management","url":"https://jonas-paprotka.de/ref/codeunit/27-confirm-management/"}},"procs":[{"name":"OnRun","line":18,"kind":"trigger","steps":[[21,"call","Code",0]]},{"name":"Code","line":35,"kind":"procedure","access":"local","params":0,"steps":[[42,"event","OnBeforePostAndEMail",1],[50,"call","ConfirmPostAndDistribute",1],[53,"call","ErrorPostAndDistribute",1],[56,"event","OnAfterConfirmPost",0],[58,"run","codeunit",80],[60,"event","OnAfterPostAndBeforeSend",0],[62,"call","SendDocumentReport",1],[64,"event","OnAfterPostAndSend",0]]},{"name":"SendDocumentReport","line":67,"kind":"procedure","access":"local","params":1,"steps":[[72,"event","OnSendDocumentReportOnBeforeSendInvoice",0],[79,"ext","table",112,"EmailRecords",1],[89,"ext","table",114,"EmailRecords",1]]},{"name":"ConfirmPostAndDistribute","line":103,"kind":"procedure","access":"local","params":1,"steps":[[108,"ext","codeunit",27,"GetResponseOrDefault",2]]}]}