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

Transferring XML Files though API in Business Central

(0) ShareShare
ReportReport
Posted on by 355

Problem Statement: We want to store XML file in Business central with some information (Ex. Payment Details) From another System. Want to update status field of one custom table by Reading that XML file.

 

Question 1:

Is it possible to receive an xml file from third party system through API in Business Central.

If so, then is that applicable for N Number of XML Files?

 

Question 2:

We know that we can receive an content of an xml file in a text field. But due to the Size restriction we cannot use

Text field for file content. Is there any alternate way for receiving the Content of a XML File irrespective of its size?

  • Suggested answer
    DAnny3211 Profile Picture
    11,427 Super User 2026 Season 1 on at

    hi

    sure you can expose an xml port within a Codeunit

    in this way you have no file length limitation

    Daniele

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

    When I have done this i have sent the xml files encoded as a base64 string. And that works pretty well.

  • Suggested answer
    YUN ZHU Profile Picture
    103,644 Super User 2026 Season 2 on at

    Hi, Yes, you can do it.

    I think the easiest way is to save the XML file as an attachment. (Max file size 350MB)

    More details: How to limit max file size for uploading attachment (Customization)

    https://yzhums.com/26649/

    pastedimage1675209475269v1.png

    In addition, if you consider using an XML file because of the size of the Text file, you can save the obtained data in the Blob type.

    Below are some usage examples of the Blob type, hoping to give you some hints.

    https://yzhums.com/27951/

    https://yzhums.com/33823/

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 750 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 534 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 287 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans