---
title: "Query 8888 Outbox Emails, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/query/8888-outbox-emails/points/
object: https://jonas-paprotka.de/ref/query/8888-outbox-emails/
app: "System Application"
major: 29
source: https://jonas-paprotka.de/ref/query/8888-outbox-emails/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/"
---

# Query 8888 Outbox Emails, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/query/8888-outbox-emails/points/

6 procedures and triggers with a step in src/System Application/App/Email/src/Email/Outbox/OutboxEmails.Query.al, in source order, read from the text, not from a run.

## GetOutboxEmails

[Line 72](https://jonas-paprotka.de/ref/query/8888-outbox-emails/source/#L72).

- [77](https://jonas-paprotka.de/ref/query/8888-outbox-emails/source/#L77) writes [Table 8888 Email Outbox](https://jonas-paprotka.de/ref/table/8888-email-outbox/) DeleteAll
- [79](https://jonas-paprotka.de/ref/query/8888-outbox-emails/source/#L79) calls `CopyFiltersFrom`
- [90](https://jonas-paprotka.de/ref/query/8888-outbox-emails/source/#L90) writes [Table 8888 Email Outbox](https://jonas-paprotka.de/ref/table/8888-email-outbox/) Insert

## InsertRecordInto

[Line 106](https://jonas-paprotka.de/ref/query/8888-outbox-emails/source/#L106).

- [112](https://jonas-paprotka.de/ref/query/8888-outbox-emails/source/#L112) writes [Table 8888 Email Outbox](https://jonas-paprotka.de/ref/table/8888-email-outbox/) Insert

## InsertRecordIfAnyRelatedRecords

[Line 116](https://jonas-paprotka.de/ref/query/8888-outbox-emails/source/#L116).

- [140](https://jonas-paprotka.de/ref/query/8888-outbox-emails/source/#L140) writes [Table 8888 Email Outbox](https://jonas-paprotka.de/ref/table/8888-email-outbox/) Insert
- [141](https://jonas-paprotka.de/ref/query/8888-outbox-emails/source/#L141) calls `ReadUntilNextMessageId`

## InsertRecordIfAllRelatedRecords

[Line 150](https://jonas-paprotka.de/ref/query/8888-outbox-emails/source/#L150).

- [168](https://jonas-paprotka.de/ref/query/8888-outbox-emails/source/#L168) writes [Table 8888 Email Outbox](https://jonas-paprotka.de/ref/table/8888-email-outbox/) Insert
- [178](https://jonas-paprotka.de/ref/query/8888-outbox-emails/source/#L178) calls `ReadUntilNextMessageId`
- [190](https://jonas-paprotka.de/ref/query/8888-outbox-emails/source/#L190) writes [Table 8888 Email Outbox](https://jonas-paprotka.de/ref/table/8888-email-outbox/) Insert

## GetOutboxEmailsIfAccessToAllRelatedRecords

[Line 198](https://jonas-paprotka.de/ref/query/8888-outbox-emails/source/#L198).

- [207](https://jonas-paprotka.de/ref/query/8888-outbox-emails/source/#L207) writes [Table 8888 Email Outbox](https://jonas-paprotka.de/ref/table/8888-email-outbox/) DeleteAll
- [208](https://jonas-paprotka.de/ref/query/8888-outbox-emails/source/#L208) calls `CopyFiltersFrom`
- [224](https://jonas-paprotka.de/ref/query/8888-outbox-emails/source/#L224) calls `InsertRecordInto`
- [225](https://jonas-paprotka.de/ref/query/8888-outbox-emails/source/#L225) calls `ReadUntilNextMessageId`
- [231](https://jonas-paprotka.de/ref/query/8888-outbox-emails/source/#L231) calls `InsertRecordIfAllRelatedRecords`

## GetOutboxEmailsIfAccessToAnyRelatedRecords

[Line 240](https://jonas-paprotka.de/ref/query/8888-outbox-emails/source/#L240).

- [249](https://jonas-paprotka.de/ref/query/8888-outbox-emails/source/#L249) writes [Table 8888 Email Outbox](https://jonas-paprotka.de/ref/table/8888-email-outbox/) DeleteAll
- [250](https://jonas-paprotka.de/ref/query/8888-outbox-emails/source/#L250) calls `CopyFiltersFrom`
- [266](https://jonas-paprotka.de/ref/query/8888-outbox-emails/source/#L266) calls `InsertRecordInto`
- [267](https://jonas-paprotka.de/ref/query/8888-outbox-emails/source/#L267) calls `ReadUntilNextMessageId`
- [273](https://jonas-paprotka.de/ref/query/8888-outbox-emails/source/#L273) calls `InsertRecordIfAnyRelatedRecords`

## Source

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

JOP-AL, 2026-11-20.
