Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

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

(0) ShareShare
ReportReport
Posted on by 1,094

Hi,

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

2. CSV MS-DOS

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,156 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. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans