Hi, i am running BC16 on prem on a local docker and want to be able to export an xmlport file to my local machine. My code is as follows below, but rather than saving it automatically to a specified folder it is saving to my downloads. OutputFileDirectory is set to 'c:\TestExport\' and OutputFileName is set to TestFile.csv. Is what i am trying to do possible?
TempBlob.CreateOutStream(OutStr, TextEncoding::UTF8);
Xmlport.Export(50000, OutStr);
TempBlob.CreateInStream(Instr);
DownloadFromStream(Instr, '', OutputFileDirectory, '', OutputFileName)
0
Answers
If you are using the web client the parameters in DownloadFromStream doesn't work.
Take a look to this link:
https://docs.microsoft.com/en-us/dynamics-nav/downloadfromstream-function--file-
Regards