Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

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

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to export customers with all information from AX into a csv file?

    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.

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,684 Super User 2024 Season 2 on at
    RE: How to export customers with all information from AX into a csv file?

    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.

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,684 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,414 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans