web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :

Export data to CSV file

gangadhar reddy Profile Picture gangadhar reddy 527

Following code can be used to export data from Ax to a CSV file

#FileCommaTextIo
commaTextIo;
FileIOPermission permission;
CustTable custTable;
str fileName = @”C:\test.csv”;

permission = new FileIOPermission(fileName,#io_write);
permission.assert();

commaTextIo = new CommaTextIo(fileName,#io_write);
while select custTable
{
commaTextIo.write(custTable.AccountNum,custTable.Name);
}

CodeAccessPermission::revertAssert();


This was originally posted here.

Comments

*This post is locked for comments