I am trying to send an email with the entire file in a single email. When I try to run the attached sample workflow it send an email for each row.
I tried using table/render but I need to send the attachment as a .csv that I am saving in the first step.
@kshah23 I would just make a couple changes to your workflow:
I deleted the block until done as the email tool will only run after everything is done processing. Then I just switched the input on the email tool to be your filename. You don't need the data itself to flow into the tool.
The above seemed simpler in your case, but the general solution is to put a sample tool before the email tool to get just the first record.