Need Help Generating Named CSV File from Surface Command Workflow

We have a Surface Command saved query and would like to run it weekly (Automation→ Workflows→Snippets), generate the results as a CSV file. Currently, the CSV plugin only produces a downloadable csv_string artifact, and the file is only recognized correctly after manually adding a .csv extension. Is there a recommended way to generate a properly named .csv file directly within the workflow?

What's the end goal here? If you want it as a file you should instead use the JSON To Bytes action and then a corresponding plugin/action to make use of it like O365 send email with attachment, SSH, FTP, or other method of sending files using bytes.

Hi Eric,

Thanks for your reply.

End goal is to have output as CSV attachment in Jira ticket.