I have got n files in a directory, they are partly .xlsx and partly .csv
I want to append all of them to one table and add a datetimestamp and also add the source file as a field.
I have created two batch macros, one for each file type which within the macro both do what they are meant to (adding a column FileName and datetimestamp).


However, when I pull these two macros into a workflow to create one single table which I output into my MySQL database, the FileName column disappears from the output.
I struggle to understand why something that is output within my macros is not output from my macros the same way in the workflow.
Thank you!
PS: the dynamic rename is just to normalise the field names for the union "by column name"