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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to export customers with all information from AX into a csv file?

(0) ShareShare
ReportReport
Posted on by

Hi all,

I need all customers list and their information from Ax in a csv file. I referred this technet blog  http://technet.microsoft.com/en-us/library/aa548629.aspx, and came to know different methods to export customers out from Ax. I tried some methods, but it gives me only some information of the customer. But i need all information of each customers from ax in a csv file. How can i get this? Is there x++ code to get all customers and their information from ax at a single shot?

Thanks in advance. Any answers would be appreciated.

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    303,247 Super User 2026 Season 1 on at

    Hi,

    You first have to define the real needed information. Is the related information addresses, contacts and bank accounts or also sales orders and invoices? Or more???

    When this is clear, then it is time to look at the possibilities.

    I think that out of the box there is no option that will fulfill completely your needs at once. So then you have to see which method would fits best and would have the miminum additional effort to fulfill your needs.

  • Community Member Profile Picture
    on at

    Hi,

       I tried to get customer information via x++ job. I referred these blogs patrikluca.blogspot.in/.../export-to-excel-with-x-code.html, ax-guides.blogspot.in/.../get-customer-information.html and executed my job. But am unable to get customer first name, last name, email, phone number etc as specified in those blogs.

       This is my code snippet that i tried to get customer information.

    CustTable               custTable;        

    CustAccount             custAccount;

    while select custTable

       {                              

    //can get this information

           info(custTable.AccountNum);      

           info(custTable.CustGroup);                

    //Not able to get these customer information

           custAccount = custTable.AccountNum;

           custTable= CustTable::find(custAccount);

           info(strFmt("Customer Name : %1", custTable.Name()));

           info(strFmt("Customer Name : %1", custTable.phone()));

           info(strFmt("Customer Name : %1", custTable.email()));

    }

    Can anyone help me in x++ code to get all this information

    Thanks in advance. Any help would be appreciated.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Sagar Suman Profile Picture

Sagar Suman 2 Super User 2026 Season 1

#1
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#1
Pratik Bhosle Profile Picture

Pratik Bhosle 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans