---
title: "Codeunit 8902 Email Scenario Attach Impl., extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/points/
object: https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/
app: "System Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
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/"
---

# Codeunit 8902 Email Scenario Attach Impl., extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/points/

9 procedures and triggers with a step in src/System Application/App/Email/src/Email/EmailAttachmens/EmailScenarioAttachImpl.Codeunit.al, in source order, read from the text, not from a run.

## GetEmailAttachmentsByEmailScenarios

[Line 22](https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/source/#L22).

- [27](https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/source/#L27) calls [Codeunit 8901 Email](https://jonas-paprotka.de/ref/codeunit/8901-email/) `OnBeforeGetEmailAttachmentsByEmailScenarios`
- [31](https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/source/#L31) calls `SetEmailScenarioAttachment`

## DeleteScenarioAttachments

[Line 34](https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/source/#L34).

- [46](https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/source/#L46) writes [Table 8911 Email Scenario Attachments](https://jonas-paprotka.de/ref/table/8911-email-scenario-attachments/) Delete
- [48](https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/source/#L48) writes [Table 8913 Email Attachments](https://jonas-paprotka.de/ref/table/8913-email-attachments/) Delete

## SetEmailScenarioAttachmentStatus

[Line 53](https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/source/#L53).

- [57](https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/source/#L57) writes [Table 8911 Email Scenario Attachments](https://jonas-paprotka.de/ref/table/8911-email-scenario-attachments/) Modify

## SetEmailScenarioAttachment

[Line 79](https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/source/#L79).

- [82](https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/source/#L82) writes [Table 8913 Email Attachments](https://jonas-paprotka.de/ref/table/8913-email-attachments/) DeleteAll
- [87](https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/source/#L87) writes [Table 8913 Email Attachments](https://jonas-paprotka.de/ref/table/8913-email-attachments/) Insert

## AddAttachmentToMessage

[Line 91](https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/source/#L91).

- [97](https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/source/#L97) calls `GetEmailAttachmentsByEmailScenarios`
- [101](https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/source/#L101) calls [Codeunit 8904 Email Message](https://jonas-paprotka.de/ref/codeunit/8904-email-message/) `AddAttachmentFromScenario`

## AddAttachmentToScenarios

[Line 106](https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/source/#L106).

- [121](https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/source/#L121) calls `AddAttachmentToSelectedScenario`

## AddAttachmentToSelectedScenario

[Line 125](https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/source/#L125).

- [131](https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/source/#L131) writes [Table 8911 Email Scenario Attachments](https://jonas-paprotka.de/ref/table/8911-email-scenario-attachments/) Insert
- [132](https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/source/#L132) calls `InsertEmailAttachments`

## AddAttachment

[Line 135](https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/source/#L135).

- [148](https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/source/#L148) writes [Table 8911 Email Scenario Attachments](https://jonas-paprotka.de/ref/table/8911-email-scenario-attachments/) Insert
- [149](https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/source/#L149) calls `InsertEmailAttachments`

## InsertEmailAttachments

[Line 152](https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/source/#L152), local.

- [155](https://jonas-paprotka.de/ref/codeunit/8902-email-scenario-attach-impl/source/#L155) writes [Table 8913 Email Attachments](https://jonas-paprotka.de/ref/table/8913-email-attachments/) Insert

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
