I have a below code in NaV 13 and i want to write same logic in business central on SAAS.
Xmldoc:= xmldoc.xmldocument; xmldoc.load(FileName);
Xmldoc is dot net variable in navision. How can i write same login in business central on saas as dot net variables are not available on saas.
First you need to upload the file content to an
InStream.You can do this with the
UploadIntoStreamprocedure:XmlInStreamis a variable of typeInStream.Next you need to use the new XML data types to load the XML Document from the stream:
MyXmlDocumentis a variable of typeXmlDocument.You can then start processing the XML Document through the
MyXmlDocumentvariable and the use of the XML data types.