---
title: "Table 9657 Custom Report Selection"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/table/9657-custom-report-selection/
type: table
id: 9657
name: "Custom Report Selection"
app: "Base Application"
namespace: Microsoft.Foundation.Reporting
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Table 9657 Custom Report Selection

Jonas Paprotka, https://jonas-paprotka.de/ref/table/9657-custom-report-selection/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Foundation.Reporting |
| Versions | 17-28 |
| Source file | Foundation/Reporting/CustomReportSelection.Table.al |

## Fields

| Id | Name | Type | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| 1 | Source Type | Integer | 17-28 | - | - |
| 2 | Source No. | Code[20] | 17-28 | - | - |
| 3 | Usage | Enum Report Selection Usage | 17-28 | - | - |
| 4 | Sequence | Integer | 17-28 | - | - |
| 5 | Report ID | Integer | 17-28 | - | - |
| 6 | Report Caption | Text[250] | 17-28 | - | - |
| 7 | Custom Report Layout Code | Code[20] | 17-28 | - | - |
| 8 | Custom Report Description | Text[250] | 17-28 | - | - |
| 9 | Send To Email | Text[200] | 17-28 | - | - |
| 19 | Use for Email Attachment | Boolean | 17-28 | - | - |
| 20 | Use for Email Body | Boolean | 17-28 | - | - |
| 21 | Email Body Layout Code | Code[20] | 17-28 | - | - |
| 22 | Email Body Layout Description | Text[250] | 17-28 | - | - |
| 23 | Use Email from Contact | Boolean | 17-28 | - | - |
| 24 | Selected Contacts Filter | Blob | 17-28 | - | - |
| 25 | Email Attachment Layout Name | Text[250] | 23-28 | - | - |
| 26 | Email Attachment Layout AppID | Guid | 23-28 | - | - |
| 27 | Email Body Layout Name | Text[250] | 23-28 | - | - |
| 28 | Email Body Layout AppID | Guid | 23-28 | - | - |
| 29 | Email Body Layout Caption | Text[250] | 24-28 | - | - |

## Keys

| Name | Fields | Versions |
| --- | --- | --- |
| Key1, clustered | Source Type, Source No., Usage, Sequence | 17-28 |
| Key2 | Report ID | 17-28 |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| InitUsage | () | - | public | 17-28 | - | - |
| FilterReportUsage | (Integer, Code[20], Option) | - | public | 17-28 | - | - |
| FilterEmailBodyUsage | (Integer, Code[20], Option) | - | public | 17-28 | - | - |
| LookupCustomReportDescription | () | - | public | 17-28 | - | - |
| LookupEmailBodyDescription | () | - | public | 17-28 | - | - |
| CheckEmailSendTo | (RecordRef) | - | public | 17-28 | - | - |
| CopyFromReportSelections | (var Record Report Selections, Integer, Code[20]) | - | public | 17-28 | - | - |
| GetSendToEmailFromContactsSelection | (Option, Code[20]) | - | public | 17-28 | - | - |
| GetSendToEmailFromContacts | (var Record Contact) | - | public | 17-28 | - | - |
| ShowSelectedContacts | () | - | public | 17-28 | - | - |
| GetSendToEmail | (Boolean) | Text[250] | public | 17-28 | - | - |
| UpdateSendtoEmail | () | - | public | 17-19 | Pending 17.0 | Replaced by UpdateSendtoEmail(Update: Boolean). |
| UpdateSendtoEmail | (Boolean) | - | public | 17-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeGetSendToEmail | (Boolean, var Text[250], var Boolean) | 17-28 | - | - |
| Integration event | OnCopyFromReportSelections | (var Record Custom Report Selection, var Record Report Selections) | 17-28 | - | - |
| Integration event | OnGetSendToEmailFromContacts | (var Record Custom Report Selection, var Record Contact, var Boolean) | 17-28 | - | - |
| Integration event | OnGetSelectedContactsFilter | (var Text) | 17-28 | - | - |
| Integration event | OnAfterFilterEmailBodyUsage | (var Record Custom Report Selection, Integer, Code[20], Option) | 18-28 | - | - |
| Integration event | OnCheckEmailBodyUsageOnAfterCalcShowEmailBodyDefinedError | (var Record Custom Report Selection, var Record Custom Report Selection, var Boolean) | 19-26 | Pending 24.0 | Not used with platform layout selection |
| Integration event | OnBeforeCheckEmailBodyUsage | (var Record Custom Report Selection, var Boolean) | 21-26 | Pending 24.0 | Not used with platform layout selection |
| Integration event | OnCopyFromReportSelectionsOnBeforeInsert | (var Record Custom Report Selection, Record Report Selections) | 21-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
