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 2
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?
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 77,925 Super User 2025 Season 1 on at
    Flat file export of sales header and sales line information on seperate lines
    Hi, for how to skip rows, hopefully the information below will give you some tips.
    Thanks
    ZHU
  • KJ-03062255-0 Profile Picture
    KJ-03062255-0 2 on at
    Flat file export of sales header and sales line information on seperate lines
    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
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 997 Moderator on at
    Flat file export of sales header and sales line information on seperate lines
    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.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans