.. _auto_dataset_write_to_file: *WRITE DATASET TO FILE* ======================= Serialises an in-memory dataset to a CSV file on disk. Writes the column headers followed by all rows in comma-separated format and returns the resulting file. Use this worker whenever a downstream step requires a dataset to be persisted as a flat file. When to use ----------- Classification: **process**. Tagged: ``csv``, ``dataset``, ``export``, ``file_output``, ``write``. Inputs ------ .. list-table:: :header-rows: 1 :widths: 20 20 20 20 20 20 * - Label - ID - Type - Default - Required - Description * - Response To Extract From - responsetoextractfrom - dataset - — - - The dataset (tabular, in-memory) to be written to disk; each row becomes a CSV line with column headers derived from the dataset keys. * - File Name - file_name - scalar - Unknown - - Desired output filename (including extension, e.g. 'results.csv'); defaults to 'Unknown' if left blank — always provide a meaningful name so the file is identifiable downstream. Outputs ------- .. list-table:: :header-rows: 1 :widths: 20 20 20 20 * - Label - ID - Type - Description * - dataset_write_to_file_output_1 - dataset_write_to_file_output_1 - file - The generated CSV file written to the platform's temporary directory; contains a header row followed by all dataset rows in comma-separated format, ready for download or further processing. Disciplines ----------- - data.io.csv - data.io.file Runnable example ---------------- A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: `/api/workflow/example?id=dataset_write_to_file `_ .. raw:: html

Auto-generated from transformation schema. Worker id: dataset_write_to_file. Schema hash: e77c43d792dc. Hand-curated docs in workerexamples/ override this page when present.