October 24, 2019

Create and save a csv/text file in D365FO (x++ code sample)

Hi Folks,

Let's see how to create a CSV or TXT file through X++ code and later save that on local folder.




In code there is the full syntax of File::SendStringAsFileToUser method with all parameters. However, not all of them are mandatory but it's nice if you can explore them for your solution, for eg. changing the file encoding.

-Harry Follow us on Facebook to keep in rhythm with us. https:fb.com/theaxapta