{"title":"Table 77 Report Selections, extension points 29","url":"https://jonas-paprotka.de/ref/table/77-report-selections/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":77,"name":"Report Selections","app":"Base Application","url":"https://jonas-paprotka.de/ref/table/77-report-selections/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/table/77-report-selections/source/","path":"src/Layers/W1/BaseApp/Foundation/Reporting/ReportSelections.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:77":{"name":"Report Selections","url":"https://jonas-paprotka.de/ref/table/77-report-selections/"},"table:9650":{"name":"Custom Report Layout","url":"https://jonas-paprotka.de/ref/table/9650-custom-report-layout/"},"codeunit:44":{"name":"ReportManagement","url":"https://jonas-paprotka.de/ref/codeunit/44-reportmanagement/"},"table:9651":{"name":"Report Layout Selection","url":"https://jonas-paprotka.de/ref/table/9651-report-layout-selection/"},"codeunit:4100":{"name":"Temp Blob","url":"https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/"},"codeunit:10":{"name":"Type Helper","url":"https://jonas-paprotka.de/ref/codeunit/10-type-helper/"},"codeunit:2114":{"name":"O365 HTML Templ. Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/2114-o365-html-templ-mgt/"},"codeunit:419":{"name":"File Management","url":"https://jonas-paprotka.de/ref/codeunit/419-file-management/"},"codeunit:701":{"name":"Data Type Management","url":"https://jonas-paprotka.de/ref/codeunit/701-data-type-management/"},"codeunit:453":{"name":"Job Queue - Enqueue","url":"https://jonas-paprotka.de/ref/codeunit/453-job-queue-enqueue/"},"table:471":{"name":"Job Queue Category","url":"https://jonas-paprotka.de/ref/table/471-job-queue-category/"},"codeunit:1173":{"name":"Document Attachment Mgmt","url":"https://jonas-paprotka.de/ref/codeunit/1173-document-attachment-mgmt/"},"table:1173":{"name":"Document Attachment","url":"https://jonas-paprotka.de/ref/table/1173-document-attachment/"},"codeunit:452":{"name":"Report Distribution Management","url":"https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/"},"codeunit:1630":{"name":"Office Management","url":"https://jonas-paprotka.de/ref/codeunit/1630-office-management/"},"codeunit:9520":{"name":"Mail Management","url":"https://jonas-paprotka.de/ref/codeunit/9520-mail-management/"},"table:9510":{"name":"Email Parameter","url":"https://jonas-paprotka.de/ref/table/9510-email-parameter/"},"codeunit:260":{"name":"Document-Mailing","url":"https://jonas-paprotka.de/ref/codeunit/260-document-mailing/"},"table:9657":{"name":"Custom Report Selection","url":"https://jonas-paprotka.de/ref/table/9657-custom-report-selection/"},"codeunit:1629":{"name":"Office Attachment Manager","url":"https://jonas-paprotka.de/ref/codeunit/1629-office-attachment-manager/"},"table:61":{"name":"Electronic Document Format","url":"https://jonas-paprotka.de/ref/table/61-electronic-document-format/"},"codeunit:425":{"name":"Data Compression","url":"https://jonas-paprotka.de/ref/codeunit/425-data-compression/"},"codeunit:8800":{"name":"Custom Layout Reporting","url":"https://jonas-paprotka.de/ref/codeunit/8800-custom-layout-reporting/"},"table:18":{"name":"Customer","url":"https://jonas-paprotka.de/ref/table/18-customer/"},"table:823":{"name":"Name/Value Buffer","url":"https://jonas-paprotka.de/ref/table/823-name-value-buffer/"}},"procs":[{"name":"Report ID.OnValidate","line":49,"kind":"trigger","steps":[[52,"validate",77,"Use for Email Body"],[53,"validate",77,"Report Layout Name"]]},{"name":"Email Body Layout Description.OnLookup","line":125,"kind":"trigger","steps":[[131,"ext","table",9650,"LookupLayoutOK",1],[133,"validate",77,"Email Body Layout Code"]]},{"name":"Email Body Layout Name.OnLookup","line":147,"kind":"trigger","steps":[[154,"ext","codeunit",44,"OnSelectReportLayout",2]]},{"name":"Email Body Layout Caption.OnLookup","line":202,"kind":"trigger","steps":[[209,"ext","codeunit",44,"OnSelectReportLayout",2]]},{"name":"Report Layout Name.OnLookup","line":222,"kind":"trigger","steps":[[229,"ext","codeunit",44,"OnSelectReportLayout",2]]},{"name":"Report Layout Caption.OnLookup","line":268,"kind":"trigger","steps":[[275,"ext","codeunit",44,"OnSelectReportLayout",2]]},{"name":"OnInsert","line":306,"kind":"trigger","steps":[[309,"call","CheckEmailBodyUsage",0]]},{"name":"OnModify","line":312,"kind":"trigger","steps":[[315,"call","CheckEmailBodyUsage",0]]},{"name":"NewRecord","line":333,"kind":"procedure","params":0,"steps":[[335,"event","OnBeforeNewRecord",0]]},{"name":"InsertRecord","line":344,"kind":"procedure","params":3,"steps":[[350,"write",77,"Insert"]]},{"name":"CheckEmailBodyUsage","line":353,"kind":"procedure","access":"local","params":0,"steps":[[360,"event","OnBeforeCheckEmailBodyUsage",1],[365,"ext","table",77,"SetEmailBodyUsageFilters",1],[368,"event","OnCheckEmailBodyUsageOnAfterCalcShowEmailBodyDefinedError",0],[373,"ext","table",9651,"GetDefaultType",1]]},{"name":"DrillDownToSelectLayout","line":380,"kind":"procedure","params":2,"steps":[[387,"ext","codeunit",44,"OnSelectReportLayout",2]]},{"name":"SetEmailUsageFilters","line":394,"kind":"procedure","params":1,"steps":[[400,"event","OnAfterSetEmailUsageFilters",0]]},{"name":"SetEmailBodyUsageFilters","line":403,"kind":"procedure","params":1,"steps":[[409,"event","OnAfterSetEmailBodyUsageFilters",0]]},{"name":"SetEmailAttachmentUsageFilters","line":412,"kind":"procedure","params":1,"steps":[[418,"event","OnAfterSetEmailAttachmentUsageFilters",0]]},{"name":"FindReportUsageForTable","line":427,"kind":"procedure","params":3,"steps":[[429,"call","FindPrintUsageInternal",3]]},{"name":"FindReportUsageForCust","line":432,"kind":"procedure","params":3,"steps":[[434,"call","FindPrintUsageInternal",4]]},{"name":"FindReportUsageForVend","line":437,"kind":"procedure","params":3,"steps":[[439,"call","FindPrintUsageInternal",4]]},{"name":"FindPrintUsageInternal","line":442,"kind":"procedure","access":"local","params":3,"steps":[[447,"call","FindReportSelections",2]]},{"name":"FindPrintUsageInternal","line":451,"kind":"procedure","access":"local","params":4,"steps":[[456,"call","FindReportSelections",3]]},{"name":"FindEmailAttachmentUsageForCust","line":460,"kind":"procedure","params":3,"steps":[[462,"call","SetEmailAttachmentUsageFilters",1],[465,"call","FindReportSelections",3]]},{"name":"FindEmailAttachmentUsageForVend","line":469,"kind":"procedure","params":3,"steps":[[471,"call","SetEmailAttachmentUsageFilters",1],[474,"call","FindReportSelections",3]]},{"name":"FindEmailBodyUsageForCust","line":478,"kind":"procedure","params":3,"steps":[[480,"call","SetEmailBodyUsageFilters",1],[482,"call","FindReportSelections",3]]},{"name":"FindEmailBodyUsageForVend","line":486,"kind":"procedure","params":3,"steps":[[488,"call","SetEmailBodyUsageFilters",1],[490,"call","FindReportSelections",3]]},{"name":"PrintWithCheckForCust","line":494,"kind":"procedure","params":3,"steps":[[498,"event","OnBeforePrintWithCheck",0],[502,"call","PrintWithDialogWithCheckForCust",4]]},{"name":"PrintWithDialogWithCheckForCust","line":505,"kind":"procedure","params":4,"steps":[[509,"event","OnBeforePrintWithGUIYesNoWithCheck",0],[513,"call","PrintDocumentsWithCheckDialogCommon",6]]},{"name":"PrintWithCheckForVend","line":517,"kind":"procedure","params":3,"steps":[[522,"event","OnBeforePrintWithCheckForVend",1],[526,"call","PrintWithDialogWithCheckForVend",4]]},{"name":"PrintWithDialogWithCheckForVend","line":529,"kind":"procedure","params":4,"steps":[[533,"event","OnBeforePrintWithGUIYesNoWithCheckVendor",0],[537,"call","PrintDocumentsWithCheckDialogCommon",6]]},{"name":"PrintReport","line":541,"kind":"procedure","params":2,"steps":[[543,"call","PrintForCust",3]]},{"name":"PrintForCust","line":546,"kind":"procedure","params":3,"steps":[[550,"event","OnBeforePrint",0],[554,"call","PrintWithDialogForCust",4]]},{"name":"PrintWithDialogForCust","line":557,"kind":"procedure","params":4,"steps":[[561,"event","OnBeforePrintWithGUIYesNo",0],[565,"call","PrintDocumentsWithCheckDialogCommon",6]]},{"name":"PrintWithDialogForVend","line":569,"kind":"procedure","params":4,"steps":[[573,"event","OnBeforePrintWithGUIYesNoVendor",0],[577,"call","PrintDocumentsWithCheckDialogCommon",6]]},{"name":"PrintDocumentsWithCheckDialogCommon","line":581,"kind":"procedure","access":"local","params":6,"steps":[[591,"event","OnBeforeSetReportLayout",0],[594,"call","GetUniqueAccountNos",3],[596,"call","SelectTempReportSelectionsToPrint",5],[597,"event","OnPrintDocumentsOnAfterSelectTempReportSelectionsToPrint",0],[601,"ext","table",9651,"ClearTempLayoutSelected",0],[603,"ext","table",9651,"SetTempLayoutSelectedName",2],[606,"ext","table",9651,"SetTempLayoutSelected",1],[609,"call","GetAccountNoFilterForCustomReportLayout",3],[610,"call","GetFilteredRecordRef",4],[614,"event","OnBeforePrintDocument",1],[621,"event","OnAfterPrintDocument",0],[623,"ext","table",9651,"ClearTempLayoutSelected",0],[626,"event","OnAfterPrintDocumentsWithCheckGUIYesNoCommon",0]]},{"name":"GetAccountNoFilterForCustomReportLayout","line":643,"kind":"procedure","params":3,"steps":[[654,"event","OnGetAccountNoFilterForCustomReportLayoutOnAfterSetCustomReportSelectionFilters",0]]},{"name":"SelectTempReportSelections","line":689,"kind":"procedure","params":5,"steps":[[694,"call","FindReportSelections",3],[698,"call","FindPrintUsageInternal",4]]},{"name":"SelectTempReportSelectionsToPrint","line":701,"kind":"procedure","params":5,"steps":[[711,"write",77,"DeleteAll"],[712,"call","SelectTempReportSelections",5],[715,"call","GetLastSequenceNo",2],[716,"call","HasReportWithUsage",3],[722,"write",77,"Insert"]]},{"name":"GetHtmlReportForCust","line":729,"kind":"procedure","params":4,"steps":[[738,"event","OnBeforeGetHtmlReport",1],[743,"event","OnGetHtmlReportForCustOnBeforeFindReportUsage",1],[745,"call","FindReportUsageForCust",3],[747,"call","SaveReportAsHTML",5],[750,"ext","codeunit",4100,"HasValue",0],[751,"ext","codeunit",4100,"CreateInStream",2],[752,"ext","codeunit",10,"ReadAsTextWithSeparator",2]]},{"name":"GetPdfReportForTable","line":764,"kind":"procedure","params":4,"steps":[[770,"call","FindReportUsageForTable",3],[773,"call","SaveReportAsPDF",4]]},{"name":"GetPdfReportForTable","line":783,"kind":"procedure","params":4,"steps":[[787,"call","FindReportUsageForTable",3],[789,"call","SaveReportAsPDFInTempBlob",5]]},{"name":"GetPdfReportForCust","line":793,"kind":"procedure","params":4,"steps":[[799,"call","FindReportUsageForCust",3],[802,"call","SaveReportAsPDF",4]]},{"name":"GetPdfReportForCust","line":805,"kind":"procedure","params":4,"steps":[[809,"call","FindReportUsageForCust",3],[811,"call","SaveReportAsPDFInTempBlob",5]]},{"name":"GetPdfReportForVend","line":822,"kind":"procedure","params":4,"steps":[[828,"call","FindReportUsageForVend",3],[831,"call","SaveReportAsPDF",4]]},{"name":"GetPdfReportForVend","line":841,"kind":"procedure","params":4,"steps":[[845,"call","FindReportUsageForVend",3],[847,"call","SaveReportAsPDFInTempBlob",5]]},{"name":"GetEmailBodyForCust","line":853,"kind":"procedure","params":5,"steps":[[856,"call","GetEmailBodyTextForCust",6]]},{"name":"GetEmailBodyTextForCust","line":862,"kind":"procedure","params":6,"steps":[[873,"event","OnBeforeGetEmailBodyCustomer",1],[879,"call","GetEmailAddressIgnoringLayout",3],[882,"event","OnGetEmailBodyTextForCustOnBeforeFindEmailBodyUsageForCust",1],[886,"call","FindEmailBodyUsageForCust",3],[889,"event","OnGetEmailBodyCustomerTextOnAfterNotFindEmailBodyUsage",1],[901,"call","SaveReportAsHTML",5],[903,"call","SaveReportAsHTML",6],[905,"ext","codeunit",2114,"CreateEmailBodyFromReportSelections",5],[907,"ext","codeunit",419,"TempBlobToServerFile",2],[909,"call","GetEmailAddress",4],[912,"event","OnAfterGetEmailBodyCustomer",1]]},{"name":"GetEmailBodyForCust","line":929,"kind":"procedure","params":5,"steps":[[931,"call","GetEmailBodyTextForCust",6]]},{"name":"GetEmailBodyTextForCust","line":944,"kind":"procedure","params":6,"steps":[[958,"event","OnBeforeGetEmailBodyCustomer",1],[964,"call","GetEmailAddressIgnoringLayout",3],[967,"event","OnGetEmailBodyTextForCustOnBeforeFindEmailBodyUsageForCust",1],[971,"call","FindEmailBodyUsageForCust",3],[974,"event","OnGetEmailBodyCustomerTextOnAfterNotFindEmailBodyUsage",1],[986,"call","SaveReportAsHTML",5],[988,"call","SaveReportAsHTML",6],[990,"ext","codeunit",2114,"CreateEmailBodyFromReportSelections",5],[993,"call","GetEmailAddress",4],[997,"ext","codeunit",4100,"HasValue",0],[998,"ext","codeunit",419,"TempBlobToServerFile",2],[1001,"event","OnAfterGetEmailBodyCustomer",1],[1005,"ext","codeunit",419,"BLOBImportFromServerFile",2],[1006,"ext","codeunit",419,"DeleteServerFile",1],[1011,"event","OnAfterGetEmailBodyCustomerProcedure",1]]},{"name":"GetEmailAddressIgnoringLayout","line":1019,"kind":"procedure","params":3,"steps":[[1026,"event","OnBeforeGetEmailAddressIgnoringLayout",1],[1030,"call","GetEmailAddress",4]]},{"name":"GetEmailAddressExt","line":1034,"kind":"procedure","params":4,"steps":[[1036,"call","GetEmailAddress",4]]},{"name":"GetEmailAddress","line":1039,"kind":"procedure","access":"local","params":4,"steps":[[1048,"event","OnBeforeGetEmailAddress",1],[1054,"ext","codeunit",701,"FindfieldByName",3],[1056,"call","GetEmailAddressForDoc",2],[1063,"call","FindEmailAddressForEmailLayout",4],[1069,"call","IsSalesDocument",1],[1070,"ext","codeunit",701,"FindfieldByName",3],[1076,"call","GetEmailAddressForCust",2],[1077,"event","OnGetEmailAddressOnAfterGetEmailAddressForCust",0]]},{"name":"GetEmailBodyForVend","line":1087,"kind":"procedure","params":5,"steps":[[1097,"event","OnBeforeGetEmailBodyVendor",1],[1102,"call","GetEmailAddressForVend",3],[1104,"call","FindEmailBodyUsageForVend",3],[1107,"event","OnGetEmailBodyVendorTextOnAfterNotFindEmailBodyUsage",1],[1117,"call","SaveReportAsHTML",5],[1119,"call","SaveReportAsHTML",6],[1121,"ext","codeunit",419,"TempBlobToServerFile",2],[1124,"call","FindEmailAddressForEmailLayout",4],[1129,"event","OnAfterGetEmailBodyVendor",1]]},{"name":"GetEmailBodyForVend","line":1137,"kind":"procedure","params":5,"steps":[[1151,"event","OnBeforeGetEmailBodyVendor",1],[1156,"call","GetEmailAddressForVend",3],[1158,"call","FindEmailBodyUsageForVend",3],[1161,"event","OnGetEmailBodyVendorTextOnAfterNotFindEmailBodyUsage",1],[1170,"call","SaveReportAsHTML",5],[1172,"call","SaveReportAsHTML",6],[1175,"call","FindEmailAddressForEmailLayout",4],[1181,"ext","codeunit",4100,"HasValue",0],[1182,"ext","codeunit",419,"TempBlobToServerFile",2],[1185,"event","OnAfterGetEmailBodyVendor",1],[1189,"ext","codeunit",419,"BLOBImportFromServerFile",2],[1190,"ext","codeunit",419,"DeleteServerFile",1],[1195,"event","OnAfterGetEmailBodyVendorProcedure",1]]},{"name":"SendEmailInBackground","line":1203,"kind":"procedure","params":1,"steps":[[1218,"call","GetJobQueueParameters",5],[1219,"call","VerifyRecordBySystemId",3],[1220,"event","OnSendEmailInBackgroundOnAfterGetJobQueueParameters",0],[1224,"call","SendEmailToVendorDirectly",6],[1226,"call","SendEmailToCustDirectly",6]]},{"name":"GetJobQueueParameters","line":1229,"kind":"procedure","params":5,"steps":[[1231,"call","GetNextJobQueueParam",1],[1232,"call","GetNextJobQueueParam",1],[1233,"call","GetNextJobQueueParam",1],[1234,"call","GetNextJobQueueParam",1]]},{"name":"RunGetNextJobQueueParam","line":1237,"kind":"procedure","params":1,"steps":[[1239,"call","GetNextJobQueueParam",1]]},{"name":"EnqueueMailingJob","line":1255,"kind":"procedure","params":3,"steps":[[1263,"call","GetMailingJobCategory",0],[1269,"event","OnEnqueueMailingJobOnBeforeRunJobQueueEnqueue",1],[1271,"run","codeunit",453]]},{"name":"GetMailingJobCategory","line":1274,"kind":"procedure","params":0,"steps":[[1279,"call","GetMailingJobCategoryCode",0],[1284,"write",471,"Insert"]]},{"name":"SaveAsDocumentAttachment","line":1295,"kind":"procedure","params":5,"steps":[[1304,"event","OnBeforeSaveAsDocumentAttachment",0],[1311,"call","FindPrintUsageInternal",4],[1312,"call","GetAccountTableId",1],[1314,"event","OnSaveAsDocumentAttachmentOnBeforeCanSaveReportAsPDF",0],[1315,"call","CanSaveReportAsPDF",1],[1317,"ext","table",77,"SaveReportAsPDFInTempBlob",5],[1318,"call","SaveDocumentAttachmentFromRecRef",6],[1323,"event","OnSaveAsDocumentAttachmentOnBeforeShowNotification",1],[1325,"ext","codeunit",1173,"ShowNotification",3]]},{"name":"SaveDocumentAttachmentFromRecRef","line":1328,"kind":"procedure","access":"local","params":6,"steps":[[1339,"event","OnBeforeSaveDocumentAttachmentFromRecRef",1],[1342,"ext","table",1173,"InitFieldsFromRecRef",1],[1343,"ext","codeunit",1173,"IsSalesDocumentFlow",1],[1344,"ext","codeunit",1173,"IsPurchaseDocumentFlow",1],[1345,"ext","codeunit",1173,"IsServiceDocumentFlow",1],[1346,"ext","codeunit",452,"GetDocumentLanguageCode",1],[1347,"ext","codeunit",452,"GetReportCaption",2],[1349,"ext","table",1173,"FindUniqueFileName",2],[1351,"ext","table",1173,"SaveAttachment",3]]},{"name":"GetAccountTableId","line":1355,"kind":"procedure","access":"local","params":1,"steps":[[1358,"call","IsCustomerAccount",1],[1360,"call","IsVendorAccount",1]]},{"name":"IsCustomerAccount","line":1365,"kind":"procedure","access":"local","params":1,"steps":[[1375,"event","OnAfterIsCustomerAccount",0]]},{"name":"IsVendorAccount","line":1378,"kind":"procedure","access":"local","params":1,"steps":[[1388,"event","OnAfterIsVendorAccount",0]]},{"name":"CanSaveReportAsPDF","line":1392,"kind":"procedure","access":"local","params":1,"steps":[[1396,"ext","table",9651,"HasLayoutOfType",2],[1396,"ext","table",9651,"HasLayoutOfType",2],[1397,"event","OnAfterCanSaveReportAsPDF",0]]},{"name":"SendEmailToCust","line":1400,"kind":"procedure","params":6,"steps":[[1409,"event","OnBeforeSendEmailToCust",0],[1416,"event","OnGetSendToCustomerDirectly",0],[1418,"call","ShouldSendToCustDirectly",3],[1421,"call","SendEmailToCustDirectly",6],[1429,"event","OnSendEmailToCustOnAfterSetParameterString",0],[1430,"call","EnqueueMailingJob",3]]},{"name":"ShouldSendToCustDirectly","line":1434,"kind":"procedure","params":3,"steps":[[1439,"call","FindEmailAttachmentUsageForCust",3],[1440,"call","GetEmailAddress",4],[1441,"call","MailManagementEnabled",0],[1441,"call","OfficeMgtAvailable",0]]},{"name":"ShouldSendToVendorDirectly","line":1444,"kind":"procedure","access":"local","params":3,"steps":[[1449,"call","GetEmailAddressForVend",3],[1451,"call","FindEmailAttachmentUsageForVend",3],[1453,"call","FindEmailAddressForEmailLayout",4],[1456,"call","MailManagementEnabled",0],[1456,"call","OfficeMgtAvailable",0]]},{"name":"OfficeMgtAvailable","line":1459,"kind":"procedure","access":"local","params":0,"steps":[[1463,"ext","codeunit",1630,"IsAvailable",0]]},{"name":"MailManagementEnabled","line":1466,"kind":"procedure","access":"local","params":0,"steps":[[1470,"ext","codeunit",9520,"IsEnabled",0]]},{"name":"SendEmailToVendor","line":1473,"kind":"procedure","params":6,"steps":[[1480,"event","OnBeforeSendEmailToVendor",0],[1487,"call","ShouldSendToVendorDirectly",3],[1488,"call","SendEmailToVendorDirectly",6],[1495,"call","IsRecordSystemIdVerificationRequired",2],[1499,"event","OnSendEmailToVendorOnAfterSetParameterString",0],[1500,"call","EnqueueMailingJob",3]]},{"name":"SendEmailToCustDirectly","line":1504,"kind":"procedure","access":"local","params":6,"steps":[[1521,"ext","table",9510,"GetParameterWithReportUsage",3],[1522,"ext","table",9510,"GetParameterValue",0],[1524,"event","OnBeforeSetReportLayout",0],[1526,"call","GetEmailBodyTextForCust",6],[1530,"event","OnSendEmailToCustDirectlyOnBeforeFindEmailAttachmentUsageForCust",1],[1532,"call","FindEmailAttachmentUsageForCust",3],[1536,"call","SendEmailDirectly",11]]},{"name":"SendEmailToVendorDirectly","line":1541,"kind":"procedure","access":"local","params":6,"steps":[[1555,"event","OnBeforeSetReportLayout",0],[1557,"call","GetEmailBodyForVend",5],[1559,"call","FindEmailAttachmentUsageForVend",3],[1563,"call","SendEmailDirectly",11]]},{"name":"SendEmailDirectly","line":1568,"kind":"procedure","access":"local","params":11,"steps":[[1620,"event","OnSendEmailDirectlyOnAfterAddRelatedReminderInvoiceSource",0],[1625,"call","GetAccountTableId",1],[1631,"event","OnSendEmailDirectlyOnAfterSetFieldName",0],[1632,"ext","codeunit",701,"FindfieldByName",3],[1644,"ext","codeunit",701,"FindfieldByName",3],[1651,"ext","codeunit",4100,"HasValue",0],[1652,"ext","codeunit",419,"TempBlobToServerFile",2],[1655,"event","OnBeforeSendEmailDirectly",1],[1659,"ext","codeunit",419,"BLOBImportFromServerFile",2],[1660,"ext","codeunit",419,"DeleteServerFile",1],[1665,"event","OnSendEmailDirectlyOnBeforeSend",1],[1671,"call","ShowNoBodyNoAttachmentError",3],[1674,"ext","codeunit",4100,"CreateInStream",1],[1676,"call","GetNextEmailAddressFromCustomReportSelection",4],[1677,"ext","codeunit",260,"EmailFile",11],[1686,"ext","table",9657,"GetSendToEmail",1],[1690,"event","OnSendEmailDirectlyOnBeforeSendFiles",0],[1692,"ext","codeunit",1629,"IncrementCount",1],[1700,"ext","codeunit",4100,"HasValue",0],[1701,"ext","codeunit",419,"TempBlobToServerFile",2],[1704,"event","OnSendEmailDirectlyOnBeforeSendFileLoop",1],[1708,"ext","codeunit",419,"BLOBImportFromServerFile",2],[1709,"ext","codeunit",419,"DeleteServerFile",1],[1712,"event","OnSendEmailDirectlyOnBeforeSendSingleFile",1],[1716,"call","GetNextEmailAddressFromCustomReportSelection",4],[1720,"event","OnSendEmailDirectlyOnBeforeSaveReportAsPDFInTempBlob",1],[1722,"ext","table",77,"SaveReportAsPDFInTempBlob",5],[1723,"ext","codeunit",4100,"CreateInStream",1],[1725,"event","OnSendEmailDirectlyOnBeforeEmailWithAttachment",0],[1729,"ext","codeunit",260,"EmailFile",11],[1733,"event","OnSendEmailDirectlyOnAfterEmailWithAttachment",0],[1738,"event","OnAfterSendEmailDirectly",0]]},{"name":"SendToDiskForCust","line":1743,"kind":"procedure","params":5,"steps":[[1755,"event","OnBeforeSetReportLayout",0],[1758,"event","OnSendToDiskForCustOnBeforeFindReportUsage",1],[1760,"call","FindReportUsageForCust",3],[1762,"event","OnSendToDiskForCustOnBeforeSendFileLoop",0],[1764,"ext","table",77,"SaveReportAsPDFInTempBlob",5],[1765,"ext","codeunit",4100,"CreateInStream",1],[1766,"ext","table",61,"GetAttachmentFileName",4],[1767,"event","OnSendToDiskForCustOnBeforeDownloadAttachment",0],[1768,"call","DownloadAttachmentFromStream",4]]},{"name":"SendToDiskForVend","line":1773,"kind":"procedure","params":5,"steps":[[1784,"event","OnBeforeSetReportLayout",0],[1785,"call","FindReportUsageForVend",3],[1787,"event","OnSendToDiskForVendOnBeforeSendFileLoop",0],[1789,"ext","table",77,"SaveReportAsPDFInTempBlob",5],[1790,"ext","codeunit",4100,"CreateInStream",1],[1791,"ext","table",61,"GetAttachmentFileName",4],[1792,"call","DownloadAttachmentFromStream",4]]},{"name":"DownloadAttachmentFromStream","line":1796,"kind":"procedure","access":"local","params":4,"steps":[[1801,"event","OnBeforeDownloadAttachmentFromStream",1],[1805,"ext","codeunit",419,"GetToFilterText",2]]},{"name":"SendToZipForCust","line":1809,"kind":"procedure","params":5,"steps":[[1817,"event","OnBeforeSetReportLayout",0],[1820,"event","OnSendToZipForCustOnBeforeFindReportUsageForCust",1],[1822,"call","FindReportUsageForCust",3],[1824,"event","OnSendToZipForCustOnBeforeSendFileLoop",0],[1826,"ext","table",77,"SaveReportAsPDFInTempBlob",5],[1828,"ext","codeunit",4100,"CreateInStream",1],[1829,"ext","codeunit",425,"AddEntry",2],[1830,"ext","table",61,"GetAttachmentFileName",4],[1833,"event","OnAfterSendToZipForCust",0]]},{"name":"SendToZipForVend","line":1837,"kind":"procedure","params":5,"steps":[[1844,"event","OnBeforeSetReportLayout",0],[1845,"call","FindReportUsageForVend",3],[1847,"event","OnSendToZipForVendOnBeforeSendFileLoop",0],[1849,"ext","table",77,"SaveReportAsPDFInTempBlob",5],[1851,"ext","codeunit",4100,"CreateInStream",1],[1852,"ext","codeunit",425,"AddEntry",2],[1853,"ext","table",61,"GetAttachmentFileName",4],[1856,"event","OnAfterSendToZipForVend",0]]},{"name":"GetEmailAddressForDoc","line":1859,"kind":"procedure","params":2,"steps":[[1864,"ext","table",9510,"GetParameterWithReportUsage",3],[1865,"ext","table",9510,"GetParameterValue",0]]},{"name":"GetEmailAddressForCust","line":1870,"kind":"procedure","params":2,"steps":[[1877,"event","OnBeforeGetCustEmailAddress",1]]},{"name":"GetEmailAddressForVend","line":1889,"kind":"procedure","params":3,"steps":[[1898,"event","OnBeforeGetVendorEmailAddress",1],[1902,"call","GetPurchaseOrderEmailAddress",3]]},{"name":"GetPurchaseOrderEmailAddress","line":1920,"kind":"procedure","access":"local","params":3,"steps":[[1928,"event","OnBeforeGetPurchaseOrderEmailAddress",1]]},{"name":"SaveReportAsPDF","line":1952,"kind":"procedure","access":"local","params":4,"steps":[[1959,"event","OnBeforeSetReportLayout",0],[1960,"ext","codeunit",419,"ServerTempFileName",0],[1962,"ext","table",9651,"SetTempLayoutSelected",1],[1963,"event","OnBeforeSaveReportAsPDF",1],[1966,"ext","codeunit",419,"BLOBImportFromServerFile",2],[1968,"event","OnAfterSaveReportAsPDF",0],[1970,"ext","table",9651,"ClearTempLayoutSelected",0]]},{"name":"SaveReportAsPDFInTempBlob","line":1975,"kind":"procedure","params":5,"steps":[[1984,"event","OnBeforeSetReportLayout",0],[1986,"ext","table",9651,"SetTempLayoutSelectedName",2],[1988,"ext","table",9651,"SetTempLayoutSelected",1],[1990,"event","OnBeforeSaveReportAsPDF",1],[1994,"ext","codeunit",4100,"CreateOutStream",1],[1995,"ext","codeunit",8800,"GetReportRequestPageParameters",1],[1996,"call","GetRecRef",1],[1998,"event","OnAfterSaveReportAsPDF",0],[2000,"ext","table",9651,"ClearTempLayoutSelected",0]]},{"name":"SaveReportAsHTML","line":2013,"kind":"procedure","access":"local","params":6,"steps":[[2015,"call","SaveReportAsHTMLImpl",7]]},{"name":"SaveReportAsHTML","line":2018,"kind":"procedure","access":"local","params":5,"steps":[[2022,"call","SaveReportAsHTMLImpl",7]]},{"name":"SaveReportAsHTMLImpl","line":2025,"kind":"procedure","access":"local","params":7,"steps":[[2029,"event","OnBeforeSetReportLayout",0],[2030,"event","OnSaveReportAsHTMLOnBeforeSetTempLayoutSelected",0],[2032,"ext","table",9651,"SetTempLayoutSelected",1],[2034,"ext","table",9651,"SetTempLayoutSelectedName",2],[2036,"call","DoSaveReportAsHTMLInTempBlob",3],[2037,"ext","table",9651,"ClearTempLayoutSelected",0]]},{"name":"DoSaveReportAsHTMLInTempBlob","line":2040,"kind":"procedure","access":"local","params":3,"steps":[[2050,"event","OnBeforeDoSaveReportAsHTML",1],[2052,"ext","codeunit",419,"BLOBImportFromServerFile",2],[2054,"event","OnBeforeDoSaveReportAsHTMLInTempBlob",1],[2057,"ext","codeunit",4100,"CreateOutStream",2],[2058,"call","GetRecRef",1],[2060,"ext","codeunit",419,"ServerTempFileName",0],[2061,"ext","codeunit",419,"BLOBExportToServerFile",2],[2062,"event","OnReplaceHTMLText",1],[2064,"ext","codeunit",419,"BLOBImportFromServerFile",2],[2068,"event","OnAfterDoSaveReportAsHTMLInTempBlob",0]]},{"name":"FindReportSelections","line":2077,"kind":"procedure","params":2,"steps":[[2081,"event","OnFindReportSelectionsForTable",1],[2087,"call","CopyCustomReportSectionToReportSelection",2],[2090,"call","CopyReportSelectionToReportSelection",1]]},{"name":"FindReportSelections","line":2093,"kind":"procedure","params":3,"steps":[[2097,"event","OnFindReportSelections",1],[2103,"call","CopyCustomReportSectionToReportSelection",3],[2106,"call","CopyReportSelectionToReportSelection",1]]},{"name":"CopyCustomReportSectionToReportSelection","line":2115,"kind":"procedure","params":2,"steps":[[2120,"event","OnBeforeCopyCustomReportSectionToReportSelectionForTable",1],[2124,"call","GetCustomReportSelectionByUsageFilter",3],[2125,"call","CopyToReportSelection",2]]},{"name":"CopyCustomReportSectionToReportSelection","line":2132,"kind":"procedure","params":3,"steps":[[2137,"event","OnBeforeCopyCustomReportSectionToReportSelection",1],[2141,"call","GetCustomReportSelectionByUsageFilter",4],[2142,"call","CopyToReportSelection",2]]},{"name":"CopyToReportSelection","line":2149,"kind":"procedure","access":"local","params":2,"steps":[[2152,"write",77,"DeleteAll"],[2166,"event","OnCopyToReportSelectionOnBeforInsertToReportSelections",0],[2167,"write",77,"Insert"]]},{"name":"CopyReportSelectionToReportSelection","line":2171,"kind":"procedure","params":1,"steps":[[2174,"write",77,"DeleteAll"],[2178,"write",77,"Insert"],[2181,"event","OnAfterCopyReportSelectionToReportSelection",0]]},{"name":"GetCustomReportSelection","line":2185,"kind":"procedure","access":"local","params":2,"steps":[[2191,"event","OnBeforeGetCustomReportSelectionForTable",1],[2202,"event","OnAfterGetCustomReportSelectionForTable",0]]},{"name":"GetCustomReportSelection","line":2207,"kind":"procedure","access":"local","params":3,"steps":[[2213,"event","OnBeforeGetCustomReportSelection",1],[2225,"event","OnAfterGetCustomReportSelection",0]]},{"name":"GetCustomReportSelectionByUsageFilter","line":2230,"kind":"procedure","access":"local","params":3,"steps":[[2233,"call","GetCustomReportSelection",2]]},{"name":"GetCustomReportSelectionByUsageFilter","line":2236,"kind":"procedure","access":"local","params":4,"steps":[[2239,"call","GetCustomReportSelection",3]]},{"name":"GetCustomReportSelectionByUsageOption","line":2242,"kind":"procedure","params":4,"steps":[[2245,"call","GetCustomReportSelection",3]]},{"name":"GetNextEmailAddressFromCustomReportSelection","line":2248,"kind":"procedure","access":"local","params":4,"steps":[[2255,"event","OnGetNextEmailAddressFromCustomReportSelectionOnAfterCustomReportSelectionSetFilters",0],[2257,"ext","table",9657,"GetSendToEmail",1]]},{"name":"GetUniqueAccountNos","line":2263,"kind":"procedure","params":3,"steps":[[2275,"write",18,"Insert"],[2276,"write",823,"Insert"],[2280,"write",823,"Insert"]]},{"name":"PrintReportsForUsage","line":2284,"kind":"procedure","params":1,"steps":[[2291,"event","OnBeforePrintForUsage",1]]},{"name":"FindEmailAddressForEmailLayout","line":2304,"kind":"procedure","access":"local","params":4,"steps":[[2309,"call","GetCustomReportSelectionByUsageOption",4],[2310,"ext","table",9657,"UpdateSendtoEmail",1]]},{"name":"ConvertReportUsageToSalesDocumentType","line":2333,"kind":"procedure","params":2,"steps":[[2339,"event","OnBeforeConvertReportUsageToSalesDocumentType",1]]},{"name":"SendEmailInForeground","line":2359,"kind":"procedure","params":6,"steps":[[2373,"call","SendEmailToCustDirectly",6],[2375,"call","SendEmailToVendorDirectly",6]]},{"name":"GetLastSequenceNo","line":2378,"kind":"procedure","access":"local","params":2,"steps":[[2388,"event","OnGetLastSequenceNoOnBeforeFillEmptySequence",1]]},{"name":"VerifyRecordBySystemId","line":2415,"kind":"procedure","access":"local","params":3,"steps":[[2419,"call","IsRecordSystemIdVerificationRequired",2],[2422,"call","GetNextJobQueueParam",1]]}]}