export_to_csv
Export records from a Universe file to CSV format for spreadsheet import and data analysis. Supports expanding multivalues into separate rows or joining with a delimiter.
Instructions
Export records from a Universe file to CSV format.
Reads the specified records and returns them as a CSV string. Useful for spreadsheet import and data analysis.
Args: file_name: Name of the Universe file record_ids: List of record IDs to export expand_mv: If True, expand multivalues into separate rows. If False (default), join multivalues with delimiter. mv_delimiter: Delimiter for multivalues when expand_mv=False. Default is "|".
Returns: Dictionary containing: - status: success or error - format: "csv" - record_count: Number of records exported - row_count: Number of rows in CSV (may differ if expand_mv=True) - data: CSV string of the exported records
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expand_mv | No | ||
| file_name | Yes | ||
| record_ids | Yes | ||
| mv_delimiter | No | | |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||