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

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

How to create a csv file via a xmlport ?

(0) ShareShare
ReportReport
Posted on by

Hey guys,

I would like to export all my customer data from NAV to a csv file.

The special thing about this is that I want to export not only the customer data but also the corresponding contact data.

For example, there is a customer that I want to export. This eliminates three contacts.

The csv file should then look like this: The first three lines are filled with the customer data and the contact data is added to these lines.

Currently, my csv file looks like this: I have one line for the customer data and three additional lines with the contact data.



How can I get this to work?


Thank you ;)

I have the same question (0)
  • Suggested answer
    Andy Sather Profile Picture
    on at
    RE: How to create a csv file via a xmlport ?

    I wasn't able to see the screenshot on your post.  I am not sure how you would be able to export the customer table and also insert lines with contact data.  You can export all of the tables via Config Package if that helps.  You can put Table 18 - Customer and Table 5050 Contacts.  I see this is for Nav 2013.  I wasnt sure if you had Config Packages in that version, but you should have RapidStart.

  • Suggested answer
    JAngle Profile Picture
    127 on at
    RE: How to create a csv file via a xmlport ?

    Check out these links for help on doing this:

    docs.microsoft.com/.../walkthrough--exporting-data-from-tables-to-csv-files

    docs.microsoft.com/.../saveascsv-function

    I imagine the query one is the easiest to get going with even if it does involve coding.

  • Suggested answer
    Binesh Profile Picture
    7,885 on at
    RE: How to create a csv file via a xmlport ?

    Hello,

    Design the XMLPort with Customer -> Customer Business Relation -> Contact as shown below.

    pastedimage1598296106699v1.png

    pastedimage1598296171932v2.png

    pastedimage1598296221176v3.png

    pastedimage1598296278096v4.png

    pastedimage1598296330613v5.png

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,907

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,169 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,977 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans