Email Ad hoc creation of csv file

Is it possible to generate and email a CSV file containing filtered table data on an ad hoc basis as part of an action/task?

Thank you