I have the following;
* XMLport design to export data (Sales Orders AND Sales Order lines)
* codeunit that builds a list of companies that I want to include in the extract, uses ChangeCompany to access that company's data, runs the XMLport (using an Out/In Stream) and then emails the files
* the code runs looping through all of the companies as expected, BUT does not generate output from the XMLports OR email anything but the first file
Any help would be appreciated!
See below;