Why do you need this change?
I would like to change the filename of an Excel file exported from the configuration package to include configuration package code.
The user initiates the export of a configuration package to Excel from a list page, card page, or subpage of the card page. Those leads to prosedure ExportExcelFromTables, where FileName is a local text variable. It is empty and it is passed to prosedure ExportExcel. In procedure ExportExcel there is a following code, which ultimately leads in codeunit 419 File Management to the fact that the filename is always in the form DefaultDD_MM_YYYY_HH_MM_SS.xlsx.
if FileName = '' then
FileName :=
StrSubstNo(ExcelFileNameTok, Format(CurrentDateTime, 0, '<Day,2>_<Month,2>_<Year4>_<Hours24>_<Minutes,2>_<Seconds,2>'));
Describe the request
Add var FileName: Text to the existing integration event in the procedure ExportExcel in codeunit 8618 Config. Excel Exchange.
begin
StartTime := CurrentDateTime();
Session.LogMessage('00009QA', ExcelExportStartMsg, Verbosity::Normal, DataClassification::SystemMetadata, TelemetryScope::ExtensionPublisher, 'Category', RapidStartTxt);
OnBeforeExportExcel(ConfigPackageTable, FileName); // <-- New parameter FileName at the end
Clear(ExportFromWksht); // Obsolete parameter
[IntegrationEvent(false, false)]
local procedure OnBeforeExportExcel(var ConfigPackageTable: Record "Config. Package Table", var FileName: Text) // <-- New parameter FileName at the end
begin
end;
Internal work item: AB#640704
Why do you need this change?
I would like to change the filename of an Excel file exported from the configuration package to include configuration package code.
The user initiates the export of a configuration package to Excel from a list page, card page, or subpage of the card page. Those leads to prosedure
ExportExcelFromTables, where FileName is a local text variable. It is empty and it is passed to prosedureExportExcel. In procedureExportExcelthere is a following code, which ultimately leads in codeunit 419File Managementto the fact that the filename is always in the form DefaultDD_MM_YYYY_HH_MM_SS.xlsx.Describe the request
Add var FileName: Text to the existing integration event in the procedure
ExportExcelin codeunit 8618Config. Excel Exchange.Internal work item: AB#640704