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?
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)
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.
Thanks.
ZHU
When I have done this i have sent the xml files encoded as a base64 string. And that works pretty well.
hi
sure you can expose an xml port within a Codeunit
in this way you have no file length limitation
Daniele
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,151 Super User 2024 Season 2
Martin Dráb 229,993 Most Valuable Professional
nmaenpaa 101,156