Hi All
Environment: D365fo
Requirement: download the CSV file format data from D365FO
For testing purpose, I use below code to get the data from ax to CSV file its working good on DEV server.
Problem: while using out side the DEV server(i.e) development server how to download the file without any path
Please share any code to resolve this.
fileName = @"C:DataFolder\_AWS_Data_Export.csv";
io = new CommaIo(strFmt("%1", filename), 'W');
io.outFieldDelimiter(",");
io.outRecordDelimiter('\r\n');
io.write('MainAccountr','BusinessUnit','Event','AccountingCurrencyAmount','Description','TransDate');
while select * from aws_Table
{
io.write(aws_Table.MainAccount,aws_Table.BusinessUnit,aws_Table.Event,aws_Table.AccountingCurrencyAmount,aws_Table.Description,aws_Table.TransDate);
}