Export csv to SFTP with headers only
I have created a workflow where I'm extracting data and exporting the required column in csv format to SFTP location. But in case there are 0 records I have to export blank csv file to SFTP with headers only.
Can you please guide how this can be achieved. Currently it creates blank file without headers.
Thanks in advance.