
We're running Business Central cloud and run a number of XMLports to feed into a seperate data warehouse. I want to run the xmlports and then save the output automatically.
I can't work out how to do it so any help would be appreciated
From BC online its not so easy to have something automatically downloaded without user interaction. Because BC online have no knowledge about your local disks.
So if you want headless save operations you should look into saving your files to an azure blob storage. The handling of Azure blob storage was improved in version 19.0
But if you want the data as local files you can use the file download from stream function.
docs.microsoft.com/.../file-downloadfromstream-method
In my projects we are moving towards azure blob storage for all the BC online file handling.
In your heading you also mention e-mail, If you want xml files sent as e-mails you can also do that using streams.