{"title":"Table 9657 Custom Report Selection, extension points 29","url":"https://jonas-paprotka.de/ref/table/9657-custom-report-selection/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":"table","id":9657,"name":"Custom Report Selection","app":"Base Application","url":"https://jonas-paprotka.de/ref/table/9657-custom-report-selection/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/table/9657-custom-report-selection/source/","path":"src/Layers/W1/BaseApp/Foundation/Reporting/CustomReportSelection.Table.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":{"table:9657":{"name":"Custom Report Selection","url":"https://jonas-paprotka.de/ref/table/9657-custom-report-selection/"},"codeunit:9520":{"name":"Mail Management","url":"https://jonas-paprotka.de/ref/codeunit/9520-mail-management/"},"codeunit:44":{"name":"ReportManagement","url":"https://jonas-paprotka.de/ref/codeunit/44-reportmanagement/"},"table:9650":{"name":"Custom Report Layout","url":"https://jonas-paprotka.de/ref/table/9650-custom-report-layout/"},"codeunit:28":{"name":"Error Message Management","url":"https://jonas-paprotka.de/ref/codeunit/28-error-message-management/"},"table:5054":{"name":"Contact Business Relation","url":"https://jonas-paprotka.de/ref/table/5054-contact-business-relation/"},"table:5050":{"name":"Contact","url":"https://jonas-paprotka.de/ref/table/5050-contact/"},"codeunit:46":{"name":"SelectionFilterManagement","url":"https://jonas-paprotka.de/ref/codeunit/46-selectionfiltermanagement/"}},"procs":[{"name":"Report ID.OnValidate","line":49,"kind":"trigger","steps":[[53,"validate",9657,"Custom Report Layout Code"],[54,"validate",9657,"Email Body Layout Code"],[55,"validate",9657,"Email Body Layout Name"],[56,"validate",9657,"Email Attachment Layout Name"]]},{"name":"Send To Email.OnValidate","line":90,"kind":"trigger","steps":[[97,"ext","codeunit",9520,"CheckValidEmailAddresses",1],[99,"call","ClearSeletedContactsFilter",0]]},{"name":"Use for Email Attachment.OnValidate","line":108,"kind":"trigger","steps":[[111,"validate",9657,"Email Body Layout Code"],[112,"validate",9657,"Email Body Layout AppID"],[113,"validate",9657,"Email Body Layout Name"]]},{"name":"Use for Email Body.OnValidate","line":122,"kind":"trigger","steps":[[125,"validate",9657,"Email Body Layout Code"],[126,"validate",9657,"Email Body Layout AppID"],[127,"validate",9657,"Email Body Layout Name"]]},{"name":"Email Body Layout Caption.OnLookup","line":189,"kind":"trigger","steps":[[196,"ext","codeunit",44,"OnSelectReportLayout",2]]},{"name":"FilterEmailBodyUsage","line":250,"kind":"procedure","params":3,"steps":[[252,"call","FilterReportUsage",3],[255,"event","OnAfterFilterEmailBodyUsage",0]]},{"name":"LookupCustomReportLayout","line":258,"kind":"procedure","access":"local","params":1,"steps":[[266,"ext","table",9650,"LookupLayoutOK",1]]},{"name":"LookupCustomReportDescription","line":274,"kind":"procedure","params":0,"steps":[[276,"validate",9657,"Custom Report Layout Code"],[276,"call","LookupCustomReportLayout",1]]},{"name":"LookupEmailBodyDescription","line":279,"kind":"procedure","params":0,"steps":[[281,"validate",9657,"Email Body Layout Code"],[281,"call","LookupCustomReportLayout",1]]},{"name":"CheckEmailSendTo","line":285,"kind":"procedure","params":1,"steps":[[290,"call","GetSendToEmail",1],[292,"ext","codeunit",28,"LogError",3]]},{"name":"CopyFromReportSelections","line":296,"kind":"procedure","params":3,"steps":[[302,"call","GetSequenceNo",0],[310,"validate",9657,"Source Type"],[311,"validate",9657,"Source No."],[312,"validate",9657,"Usage"],[313,"validate",9657,"Sequence"],[314,"validate",9657,"Report ID"],[315,"validate",9657,"Use for Email Body"],[316,"validate",9657,"Use for Email Attachment"],[317,"validate",9657,"Custom Report Layout Code"],[319,"validate",9657,"Email Body Layout Code"],[320,"validate",9657,"Email Body Layout Name"],[321,"validate",9657,"Email Body Layout AppID"],[322,"validate",9657,"Email Attachment Layout Name"],[323,"validate",9657,"Email Attachment Layout AppID"],[324,"event","OnCopyFromReportSelectionsOnBeforeInsert",0],[325,"write",9657,"Insert"],[331,"event","OnCopyFromReportSelections",0]]},{"name":"GetSendToEmailFromContactsSelection","line":334,"kind":"procedure","params":2,"steps":[[339,"ext","table",5054,"FindContactsByRelation",3],[340,"call","IsCustomerVendorLinkType",1],[341,"call","GetCustomerVendorAdditionalContacts",3],[343,"ext","table",5050,"GetContactsSelectionFromContactList",1],[344,"call","GetSendToEmailFromContacts",1]]},{"name":"GetSendToEmailFromContacts","line":347,"kind":"procedure","params":1,"steps":[[375,"call","FillSelectedContactsFilter",1],[376,"event","OnGetSendToEmailFromContacts",0]]},{"name":"ShowSelectedContacts","line":385,"kind":"procedure","params":0,"steps":[[390,"call","GetSelectedContactsFilter",0],[391,"ext","table",5050,"GetContactsSelectionFromContactList",1]]},{"name":"GetSelectedContactsFilter","line":418,"kind":"procedure","access":"local","params":0,"steps":[[428,"event","OnGetSelectedContactsFilter",0]]},{"name":"GetSendToEmail","line":431,"kind":"procedure","params":1,"steps":[[437,"event","OnBeforeGetSendToEmail",1],[442,"call","GetSelectedContactsFilter",0],[443,"call","FillSendToEmail",1],[445,"write",9657,"Modify"]]},{"name":"UpdateSendtoEmail","line":472,"kind":"procedure","params":1,"steps":[[476,"call","GetSendToEmail",1]]},{"name":"GetCustomerVendorAdditionalContacts","line":495,"kind":"procedure","access":"local","params":3,"steps":[[518,"ext","table",5054,"FindContactsByRelation",3],[519,"call","CombineContacts",2]]},{"name":"CombineContacts","line":522,"kind":"procedure","access":"local","params":2,"steps":[[527,"ext","codeunit",46,"GetSelectionFilterForContact",1],[529,"ext","codeunit",46,"GetSelectionFilterForContact",1],[531,"ext","codeunit",46,"GetSelectionFilterForContact",1]]}]}