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

Notifications

Announcements

No record found.

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
    300,837 Super User 2025 Season 2 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#2
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

#2
Rahul.p Profile Picture

Rahul.p 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans