web
You’re offline. This is a read only version of the page.
close
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

Transferring XML Files though API in Business Central

(0) ShareShare
ReportReport
Posted on by 351

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?

I have the same question (0)
  • Suggested answer
    DAnny3211 Profile Picture
    11,397 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
    Inge M. Bruvik Profile Picture
    1,111 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
    95,636 Super User 2025 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,577

#2
YUN ZHU Profile Picture

YUN ZHU 888 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 778 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans