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 :
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,111 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
    95,729 Super User 2025 Season 2 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

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans