I want to write the same logic in business central on SAAS as I did in the code below that I have in NaV 13.
Xmldoc:=xmldoc.xmldocument; xmldoc.load(FileName);
In Navision, Xmldoc is a dot net variable. Given that dot net variables are not available on saas, how can I create the same login in Business Central?
How to Load Xml File in Business Central
· Create New Al XmlPort with the use of AL Wizard.
· Then in Notepad create a xml file.
· Save this file in (.xml) format.
· Then Extend the customer list for next step.
· Create two actions for Export & Import function.
· For Export…
· For Import…
· Then in Business Central open the customer list and click the Export the file action.
· Open the Exported file to visualized the data.
· Clear the data from exported file and insert new data and save As in CSV UTF-8(Comma delimited) type.
· Then import the save file in Business Central.
· Imported data will shown here.
This is how you can load xml file in Business Central using Xml Port.