{"title":"Codeunit 5916 ServMailManagement, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5916-servmailmanagement/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":5916,"name":"ServMailManagement","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5916-servmailmanagement/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5916-servmailmanagement/source/","path":"src/Layers/W1/BaseApp/Service/Email/ServMailManagement.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:9520":{"name":"Mail Management","url":"https://jonas-paprotka.de/ref/codeunit/9520-mail-management/"},"table:9500":{"name":"Email Item","url":"https://jonas-paprotka.de/ref/table/9500-email-item/"}},"procs":[{"name":"OnRun","line":13,"kind":"trigger","steps":[[19,"ext","codeunit",9520,"IsEnabled",0],[22,"call","InitTempEmailItem",2],[24,"ext","codeunit",9520,"SetHideMailDialog",1],[25,"ext","codeunit",9520,"SetHideEmailSendingError",1],[26,"ext","codeunit",9520,"Send",2]]},{"name":"InitTempEmailItem","line":33,"kind":"procedure","access":"local","params":2,"steps":[[39,"ext","table",9500,"Initialize",0],[43,"ext","table",9500,"AddAttachment",2],[48,"event","OnInitTempEmailItemOnBeforeSetBodyText",1],[50,"ext","table",9500,"SetBodyText",1],[54,"write",9500,"Insert"]]}]}