Export XML and Save To Local Directory

rickyl76rickyl76 Member Posts: 25
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)

Answers

Sign In or Register to comment.