Hello -
I am trying to have a codeunit kick off an xmlport multiple times to create me multiple files. I am currently looping through rows in a different table that act as filters being sent in to the xmlport. There are currently 3 rows in this table, so I would expect 3 files to get generated. I am only able to generate the file for the last record/row in my loop. Has anybody run into this issue?
I have tried using a foreach:
I have also tried using repeat:
TextXmlPort.Run() only actually executes file for the last run. Every other time, it gets to that line and seems like it runs, but no files are created.
Thank you in advance.