Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Import an XML File as an incoming document

(0) ShareShare
ReportReport
Posted on by 25
Hello everyone,
I need to allow BC to read a specific format of an Xml file (an invoice) as an incoming document, but I'm lost between the different settings and definitions (xmlPort, codeUnit, etc...). Does anyone have a procedure or a tutorial to do this?
Thanks for your help,
I am a beginner and I use the latest version in Cloud
  • Verified answer
    SaidBRK Profile Picture
    25 on at
    RE: Import an XML File as an incoming document

    Hello Steve,

    Thank you for your feedback which helped me a lot, indeed with the 1st tutorial you just have to replace the CSV by the XML and it's done.

    Thanks again and if I have any information on my side, I will not hesitate to share it here

  • Suggested answer
    steveendow Profile Picture
    2,281 on at
    RE: Import an XML File as an incoming document

    Hi,

    Based on some initial searches, I'm not finding a comprehensive guide, but found a few items.

    Here is a blog post from Yun Zhu, but it looks like his import example is CSV:

    https://yzhums.com/4809/

    It looks like there is a section on XMLport in this BC dev book:

    https://subscription.packtpub.com/book/business_and_other/9781789951257/8/ch08lvl1sec47/using-xmlports-in-al-code

    Here is a video by Erik Hougaard with some alternatives to XMLport, and it looks like he codes the solutions:

    https://www.hougaard.com/process-large-xml-without-an-xmlport/

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 the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 944

#2
YUN ZHU Profile Picture

YUN ZHU 841 Super User 2025 Season 1

#3
Mansi Soni Profile Picture

Mansi Soni 602

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans