---
title: "Table 9657 Custom Report Selection, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/table/9657-custom-report-selection/points/
object: https://jonas-paprotka.de/ref/table/9657-custom-report-selection/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/table/9657-custom-report-selection/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/"
---

# Table 9657 Custom Report Selection, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/table/9657-custom-report-selection/points/

19 procedures and triggers with a step in src/Layers/W1/BaseApp/Foundation/Reporting/CustomReportSelection.Table.al, in source order, read from the text, not from a run.

## Report ID.OnValidate

[Line 49](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L49), trigger.

- [53](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L53) validates [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) `Custom Report Layout Code`
- [54](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L54) validates [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) `Email Body Layout Code`
- [55](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L55) validates [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) `Email Body Layout Name`
- [56](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L56) validates [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) `Email Attachment Layout Name`

## Send To Email.OnValidate

[Line 90](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L90), trigger.

- [97](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L97) calls [Codeunit 9520 Mail Management](https://jonas-paprotka.de/ref/codeunit/9520-mail-management/) `CheckValidEmailAddresses`
- [99](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L99) calls `ClearSeletedContactsFilter`

## Use for Email Attachment.OnValidate

[Line 108](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L108), trigger.

- [111](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L111) validates [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) `Email Body Layout Code`
- [112](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L112) validates [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) `Email Body Layout AppID`
- [113](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L113) validates [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) `Email Body Layout Name`

## Use for Email Body.OnValidate

[Line 122](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L122), trigger.

- [125](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L125) validates [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) `Email Body Layout Code`
- [126](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L126) validates [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) `Email Body Layout AppID`
- [127](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L127) validates [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) `Email Body Layout Name`

## Email Body Layout Caption.OnLookup

[Line 189](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L189), trigger.

- [196](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L196) calls [Codeunit 44 ReportManagement](https://jonas-paprotka.de/ref/codeunit/44-reportmanagement/) `OnSelectReportLayout`

## FilterEmailBodyUsage

[Line 250](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L250).

- [252](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L252) calls `FilterReportUsage`
- [255](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L255) raises `OnAfterFilterEmailBodyUsage`

## LookupCustomReportLayout

[Line 258](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L258), local.

- [266](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L266) calls [Table 9650 Custom Report Layout](https://jonas-paprotka.de/ref/table/9650-custom-report-layout/) `LookupLayoutOK`

## LookupCustomReportDescription

[Line 274](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L274).

- [276](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L276) validates [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) `Custom Report Layout Code`
- [276](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L276) calls `LookupCustomReportLayout`

## LookupEmailBodyDescription

[Line 279](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L279).

- [281](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L281) validates [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) `Email Body Layout Code`
- [281](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L281) calls `LookupCustomReportLayout`

## CheckEmailSendTo

[Line 285](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L285).

- [290](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L290) calls `GetSendToEmail`
- [292](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L292) calls [Codeunit 28 Error Message Management](https://jonas-paprotka.de/ref/codeunit/28-error-message-management/) `LogError`

## CopyFromReportSelections

[Line 296](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L296).

- [302](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L302) calls `GetSequenceNo`
- [310](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L310) validates [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) `Source Type`
- [311](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L311) validates [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) `Source No.`
- [312](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L312) validates [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) `Usage`
- [313](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L313) validates [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) `Sequence`
- [314](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L314) validates [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) `Report ID`
- [315](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L315) validates [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) `Use for Email Body`
- [316](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L316) validates [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) `Use for Email Attachment`
- [317](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L317) validates [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) `Custom Report Layout Code`
- [319](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L319) validates [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) `Email Body Layout Code`
- [320](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L320) validates [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) `Email Body Layout Name`
- [321](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L321) validates [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) `Email Body Layout AppID`
- [322](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L322) validates [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) `Email Attachment Layout Name`
- [323](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L323) validates [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) `Email Attachment Layout AppID`
- [324](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L324) raises `OnCopyFromReportSelectionsOnBeforeInsert`
- [325](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L325) writes [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) Insert
- [331](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L331) raises `OnCopyFromReportSelections`

## GetSendToEmailFromContactsSelection

[Line 334](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L334).

- [339](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L339) calls [Table 5054 Contact Business Relation](https://jonas-paprotka.de/ref/table/5054-contact-business-relation/) `FindContactsByRelation`
- [340](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L340) calls `IsCustomerVendorLinkType`
- [341](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L341) calls `GetCustomerVendorAdditionalContacts`
- [343](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L343) calls [Table 5050 Contact](https://jonas-paprotka.de/ref/table/5050-contact/) `GetContactsSelectionFromContactList`
- [344](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L344) calls `GetSendToEmailFromContacts`

## GetSendToEmailFromContacts

[Line 347](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L347).

- [375](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L375) calls `FillSelectedContactsFilter`
- [376](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L376) raises `OnGetSendToEmailFromContacts`

## ShowSelectedContacts

[Line 385](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L385).

- [390](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L390) calls `GetSelectedContactsFilter`
- [391](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L391) calls [Table 5050 Contact](https://jonas-paprotka.de/ref/table/5050-contact/) `GetContactsSelectionFromContactList`

## GetSelectedContactsFilter

[Line 418](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L418), local.

- [428](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L428) raises `OnGetSelectedContactsFilter`

## GetSendToEmail

[Line 431](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L431).

- [437](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L437) raises `OnBeforeGetSendToEmail`, IsHandled
- [442](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L442) calls `GetSelectedContactsFilter`
- [443](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L443) calls `FillSendToEmail`
- [445](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L445) writes [Table 9657 Custom Report Selection](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/) Modify

## UpdateSendtoEmail

[Line 472](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L472).

- [476](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L476) calls `GetSendToEmail`

## GetCustomerVendorAdditionalContacts

[Line 495](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L495), local.

- [518](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L518) calls [Table 5054 Contact Business Relation](https://jonas-paprotka.de/ref/table/5054-contact-business-relation/) `FindContactsByRelation`
- [519](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L519) calls `CombineContacts`

## CombineContacts

[Line 522](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L522), local.

- [527](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L527) calls [Codeunit 46 SelectionFilterManagement](https://jonas-paprotka.de/ref/codeunit/46-selectionfiltermanagement/) `GetSelectionFilterForContact`
- [529](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L529) calls [Codeunit 46 SelectionFilterManagement](https://jonas-paprotka.de/ref/codeunit/46-selectionfiltermanagement/) `GetSelectionFilterForContact`
- [531](https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/#L531) calls [Codeunit 46 SelectionFilterManagement](https://jonas-paprotka.de/ref/codeunit/46-selectionfiltermanagement/) `GetSelectionFilterForContact`

## Source

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

JOP-AL, 2026-11-20.
