Skip to main content

Notifications

Announcements

No record found.

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
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 75,673 Super User 2024 Season 2 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
  • 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 993 Super User 2024 Season 1 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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,661 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,379 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans