Insert filename into rows

Does anyone have information about how to insert the csv file name to each row of the csv?
I need to do this for a few thousand csv files. I’ve found a little help on the forum but nothing that has worked so far.

Thanks!

Michael

Hi Michael, It is not directly supported, but the Flow and Workflow Variable concept might help in this case. If you have enabled the expert mode you get a new set of nodes in the Loop Support category, as well as an addtional tab in all dialogs supporting flow and workflow variables. A possible solution would look as follows: add a workflow variable holding the file location and name, use the Java Snippet to append a new column for all rows, finally use the workflow variable inside the CSV Writer dialog to assign the file location. Best, Thomas