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 :
Small and medium business | Business Central, N...
Suggested Answer

XMLPort Question - Inserting a row manually in the export file

(0) ShareShare
ReportReport
Posted on by 52

Hi everyone, 

I am wanting to create a export file with XMLPort in Dynamics NAV, with AL. 

The format I want is for every line read from the source file, i will copy this row, modify and create a second additional row. 

Is this possible in XMLPort? 

Thanks

I have the same question (0)
  • screen123 Profile Picture
    52 on at

    So if there was 1 row in the source file, the exported file will contain 2 rows, with the second row a manually inserted row.

  • Suggested answer
    RockwithNav Profile Picture
    8,852 Super User 2026 Season 1 on at

    The Question is still not clear, can you please explain once more?

  • screen123 Profile Picture
    52 on at

    Hi Rockwith Nav,

    I'm not sure how I can explain this more.

    Imagine a simple XML file to be used in a export in NAV for the Purchase Line table.

    XML Port is used to export the data out into XML.

    The only requirement here is the XML export, for all the Purchase Line table rows; there will be a extra row that was created and inserted into the XML export file.

    So if Purchase Line contains below rows

    1-xkjsdsd-junk-test

    2-skdjksd-jksd-test

    The export needs to result in below

    1-abstract-junk-test

    1-abstract-junk-test-copied-and-modified-line

    2-more-abstract-jksd-test

    2-more-abstract-jksd-test-copied-and-modified-line

    Can this be done in NAV XML Port?

    Thanks

  • screen123 Profile Picture
    52 on at

    1-abstract-junk-test

    2-more-abstract-jksd-test

    The export needs to result in below

    1-abstract-junk-test

    1-abstract-junk-test-copied-and-modified-line

    2-more-abstract-jksd-test

    2-more-abstract-jksd-test-copied-and-modified-line

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,960 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,084 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 1,047 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans