SaveCsvFile

Takes two parameters, FilePath, bUseHeader

Description:

Saves the current WorkQuery as a CSV file at the provided path. The optional second parameter defaults to true if not specified, but if set to false will output the data without a header row listing the field names.

Conversion of HTML text escape values are applied to the output, as well as ApplyLang$, and finally conversion from UTF-8 to ANSI. If these conversions are not desired, use a combination of CsvStream$ and SaveFile instead to output unescaped UTF-8.

Example:

SaveCsvFile "Work/Biz/Job/.../my-csv-file.csv"