> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bondata.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Export to CSV

> Export workflow data to a CSV file or Google Sheet

Exports data from your workflow to a CSV file. Optionally send it to a connected integration (email, Slack, Google Sheets) or use it as input for an Upload File node.

## Configuration

| Setting           | Description                                                                                                            |
| ----------------- | ---------------------------------------------------------------------------------------------------------------------- |
| **Title**         | Name for the export                                                                                                    |
| **Fields**        | Columns to include - each with a **value** (field expression or Mention) and **column name** (display name in the CSV) |
| **Order by**      | Optional field to sort rows by                                                                                         |
| **Reverse order** | Sort descending if enabled                                                                                             |
| **Platform**      | Optional integration to send the CSV to (e.g., Slack, email)                                                           |
| **Recipient**     | Recipients for the delivery (email addresses, Slack channels)                                                          |
| **Message**       | Optional message to include with the delivery                                                                          |

### Grouping Options

| Setting                         | Description                                                       |
| ------------------------------- | ----------------------------------------------------------------- |
| **Group by entity / field**     | Generate separate CSV files per group (e.g., one file per region) |
| **Row group by entity / field** | Aggregate rows within each group                                  |

## How It Works

<Steps>
  <Step title="Define columns">
    Use **+ Add Column** to add fields. For each column, set the source value (using **Mentions**) and the display name.
  </Step>

  <Step title="Configure sorting (optional)">
    Select a field to sort by and choose ascending or descending order.
  </Step>

  <Step title="Choose delivery (optional)">
    Select a platform and recipients to automatically deliver the CSV, or leave blank to use the file in downstream nodes.
  </Step>
</Steps>

## Output

Produces a CSV file that can be:

* Delivered to recipients via the configured platform
* Passed to a downstream [Upload File](/guide/nodes/actions/upload-file-node) node for cloud storage
* Downloaded from the Agent's task log

## Example

Generate a weekly account summary CSV:

1. Get Data from Salesforce Accounts
2. Add an Export to CSV node
3. Add columns: Account Name, Industry, Revenue, Last Activity Date
4. Sort by Revenue (descending)
5. Deliver via Slack to `#weekly-reports`

## Best Practices

* Use **Group by** to generate separate files when data should be split (e.g., one file per sales rep)
* Name columns clearly - these are the headers your recipients will see
* Sort by the most important field for quick scanning

## Related Nodes

* **[Private Export](/guide/nodes/actions/private-export-node)** - exports to BonData's internal storage for download
* **[Upload File](/guide/nodes/actions/upload-file-node)** - upload the generated CSV to S3 or other cloud storage
