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

Flat file export of sales header and sales line information on seperate lines

(0) ShareShare
ReportReport
Posted on by 10
I have a need to export sales order information into 1 file where the sales header information is on one line and then the sales line information would be on the following lines., something like this:
/SH/,/2016981433/,/12345678/,/JOAN HARRY/,/5050 Road N/,//,/Waterloo/,/ON/,/N1N 1N1/,/CA/,//,/555-666-7777/,/JOAN HARRY/,/5050 Road N/,//,/Waterloo/,/ON/,/N1N 1N1/,/CA/,/Ground/,/P/,//,/2020-03-07T00:00:00Z/,/AMZ/,///SL/,/2016981433/,/1/,/13358A/,/16/,/0.00//SL/,/2016981433/,/2/,/2564A/,/6/,/0.00//SL/,/2016981433/,/3/,/568955/,/6/,/0.00//SL/,/2016981433/,/4/,/5666/,/6/,/0.00//SL/,/2016981433/,/5/,/5665/,/4/,/0.00/
 
has anyone done something similar or seen anything like this? Is it even possible?
I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,161 Moderator on at
    There are many ways to do that in Business Central.
    The easiest way is probably to use an XML port if you want to do it in the AL language.
    You can also use configuration packages to create an export like that.
    You can also use the CSV,XML og Json buffers if you want a more standard format for your data.
  • KJ-03062255-0 Profile Picture
    10 on at
    Thanks Inge,
    I have been working on the XML port, what I am trying to figure out is how to do one XMLPort where the first line is the header information, and then the next 3 lines would be the 3 items on the sales order, then the next line would be the next sales header and then then lines below that etc. 
  • Suggested answer
    YUN ZHU Profile Picture
    98,306 Super User 2026 Season 1 on at
    Hi, for how to skip rows, hopefully the information below will give you some tips.
    Thanks
    ZHU

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,986 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,071 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 975 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans