Skip to main content



No record found.

Microsoft Dynamics AX forum
Suggested answer

How to create and define type of .CSV file in x++

Posted on by 1,090


We already got how to create/export some data's into .csv file.

but we already know there's 4 types of .CSV.

1. CSV UTF-8


3. CSV (comma delimited)

4. CSV Macintosh

and how to define each them in x++?

thank you for your help 

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,148 on at
    RE: How to create and define type of .CSV file in x++

    I think you're mixing two things: file contents and file encoding.

    CSV simply means that the file contains comma separated values.

    Whether you save that file using UTF-8 or some other encoding is another thing.

    I recommend using Data Import Export Framework for exporting data to CSV - this way you don't need to do any development.

    Or, perhaps use Excel add in to export form grid contents to Excel, then save it as CSV.

    About your original question about these 4 different files, I think you need to start by describind in detail what you exactly mean with them. Then decide what kind of data you want to output from AX. 

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .


André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

nmaenpaa Profile Picture

nmaenpaa 101,148


Featured topics

Product updates

Dynamics 365 release plans