{"title":"Codeunit 8902 Email Scenario Attach Impl., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/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":8902,"name":"Email Scenario Attach Impl.","app":"System Application","url":"https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/source/","path":"src/System Application/App/Email/src/Email/EmailAttachmens/EmailScenarioAttachImpl.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:8901":{"name":"Email","url":"https://jonas-paprotka.de/ref/codeunit/8901-email/"},"table:8911":{"name":"Email Scenario Attachments","url":"https://jonas-paprotka.de/ref/table/8911-email-scenario-attachments/"},"table:8913":{"name":"Email Attachments","url":"https://jonas-paprotka.de/ref/table/8913-email-attachments/"},"codeunit:8904":{"name":"Email Message","url":"https://jonas-paprotka.de/ref/codeunit/8904-email-message/"}},"procs":[{"name":"GetEmailAttachmentsByEmailScenarios","line":22,"kind":"procedure","params":2,"steps":[[27,"ext","codeunit",8901,"OnBeforeGetEmailAttachmentsByEmailScenarios",1],[31,"call","SetEmailScenarioAttachment",2]]},{"name":"DeleteScenarioAttachments","line":34,"kind":"procedure","params":2,"steps":[[46,"write",8911,"Delete"],[48,"write",8913,"Delete"]]},{"name":"SetEmailScenarioAttachmentStatus","line":53,"kind":"procedure","params":3,"steps":[[57,"write",8911,"Modify"]]},{"name":"SetEmailScenarioAttachment","line":79,"kind":"procedure","params":2,"steps":[[82,"write",8913,"DeleteAll"],[87,"write",8913,"Insert"]]},{"name":"AddAttachmentToMessage","line":91,"kind":"procedure","params":2,"steps":[[97,"call","GetEmailAttachmentsByEmailScenarios",2],[101,"ext","codeunit",8904,"AddAttachmentFromScenario",1]]},{"name":"AddAttachmentToScenarios","line":106,"kind":"procedure","params":3,"steps":[[121,"call","AddAttachmentToSelectedScenario",5]]},{"name":"AddAttachmentToSelectedScenario","line":125,"kind":"procedure","params":5,"steps":[[131,"write",8911,"Insert"],[132,"call","InsertEmailAttachments",2]]},{"name":"AddAttachment","line":135,"kind":"procedure","params":3,"steps":[[148,"write",8911,"Insert"],[149,"call","InsertEmailAttachments",2]]},{"name":"InsertEmailAttachments","line":152,"kind":"procedure","access":"local","params":2,"steps":[[155,"write",8913,"Insert"]]}]}