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

How to import XML files automatically?

(0) ShareShare
ReportReport
Posted on by

Hello guys,

I would like to do the following:

I have some XML files that I want to import automatically into BC14.

I have already created the XMLPort that is responsible for importing the data from the XML file in a buffer table.

Do you have any idea how I can access the individual XML files in a folder by code?

First it should always be checked if new files have been added and if so, the files should be read in via XMLPort.

But how do I do that?


Many thanks for your support.


I have the same question (0)
  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    You should check out the file management codeunit.

    docs.microsoft.com/.../

  • Community Member Profile Picture
    on at

    Hello,

    unfortunately this does not really help me.

    Do you have an idea where I can take a look at the import of an XML file in the form of code?

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    Unfortunately all my personal sample code is from newer versions than the one you are on. But maybe this will help?

    simplanova.com/.../

  • Suggested answer
    YUN ZHU Profile Picture
    101,458 Super User 2026 Season 1 on at

    Hi, I think you are using BC 14 On-Premises.

    You can check Codeunit 419 File Management to see if there is a function that can be used.

    For example, NAV 2018: https://motochini.com/v11.00/object/cod/419

    More details:

    http://adeptris.com/dynamics-nav-export-and-zip-xmlport-files/

    Hope this will help.

    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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,216 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,471 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,369

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans