---
title: "Save to storage · WitCloud Docs"
description: "Export a BigQuery table or the saved result of a Custom Query to a CSV or AVRO file in your project's storage bucket, and refresh it on a schedule."
canonical_url: "https://witcloud.ai/docs/integrations/save-to-storage"
meta:
  "og:description": "Export a BigQuery table or the saved result of a Custom Query to a CSV or AVRO file in your project's storage bucket, and refresh it on a schedule."
  "og:image": "https://witcloud.ai/og-default.png"
  "og:title": "Save to storage · WitCloud Docs"
---

> Index of every page on this site: [llms.txt](https://witcloud.ai/llms.txt)

# Save to storage

Export a BigQuery table or the saved result of a Custom Query to a CSV or AVRO file in your project's storage bucket, and refresh it on a schedule.

Updated 8 Oct 2026

## Introduction

The **Save to storage** integration exports data from BigQuery to a file in your project's storage bucket. Choose a table, or the saved result of one of your Custom Queries, and pick CSV or AVRO. Use it to archive data, to hand it to a system outside BigQuery, or to share it as a file with anyone who needs it. Add it to a workflow and the file is refreshed on every run.

## Configuration guide

Creating a Save to storage integration needs an active billing account (or a trial) on the project.

### Module setup

Go to **Integrations** and click **Add integration**.

![Integrations list with the Add integration button](https://api.witcloud.ai/api/docs/assets/c8b72213ef23354505be3b578545e618.png)

Find **Save to storage** (in the **Data Export** category) and click it.

![Integration catalog filtered to Save to storage](https://api.witcloud.ai/api/docs/assets/673db8b8af7d32007d18dfe80efe1c87.png)

Enter the **Solution name**, e.g. `Sales export`.

![Solution name field filled in with the example name Sales export](https://api.witcloud.ai/api/docs/assets/e67ac9f128cfdc2d53b0b9c62af9f9b7.png)

### Choose the data source

Under **Select source**, choose where the data comes from:

- **Query Job** (default) - the saved result of one of your Custom Queries.
- **BigQuery** - a table you pick yourself.

![Select source options Query Job and BigQuery](https://api.witcloud.ai/api/docs/assets/f117869768d89484468075c7dedf7ed8.png)

#### Query Job

Choose a Custom Query from the **Query Jobs** list.

![Query Jobs drop-down open with two example queries](https://api.witcloud.ai/api/docs/assets/417459f107118a8420c327270917f91b.png)

The query must have **Save Query results** switched on, and it must have run at least once, so that its result table exists. Without it the export fails. If the query's result table is partitioned by ingestion time, each run exports the partition of the date the run processes. Otherwise it exports the whole table.

#### BigQuery

Select the **Google Cloud Project** where the table is stored. **Custom Project Id** at the end of the list lets you type the ID of a project that is not on the list.

![Google Cloud Project drop-down open with two example projects](https://api.witcloud.ai/api/docs/assets/f86f3b362faff28b1d929319b79f1782.png)

Pick the **BigQuery Dataset** that contains the table.

![BigQuery Dataset drop-down open with two example datasets](https://api.witcloud.ai/api/docs/assets/2325d3147a91b78caf6a70451050cd54.png)

Choose the **BigQuery Table** to export. Every run exports the whole table, including a partitioned one.

![BigQuery Table drop-down open with two example tables](https://api.witcloud.ai/api/docs/assets/84254586779a9c732dfb89124c849835.png)

### Output format

Under **Output format**, choose the file type:

- **CSV** (default)
- **AVRO**

![Output format options CSV and AVRO](https://api.witcloud.ai/api/docs/assets/d84c440a122cfa0994062c0342b69b62.png)

### Options

Under **Options**, tick what you need. All four are off until you tick them.

- **Make file public** - anyone with the file's link can download it, without signing in.
- **Use compression** - compress the file (gzip for CSV, Snappy for AVRO).
- **Add headers** - write the column names as the first row. It applies to CSV only.
- **Add date suffix to filename** - add the run date to the name, e.g. `daily_sales_20261008.csv`, so that every run creates a new file instead of replacing the previous one.

![Options checkboxes Make file public, Use compression, Add headers and Add date suffix to filename](https://api.witcloud.ai/api/docs/assets/02ef28023c3dca22a2f4f62d418d75e0.png)

Click **Create**.

![Completed Save to storage settings with the Create button](https://api.witcloud.ai/api/docs/assets/78a540f3ead0fcfd495d0c9666a966a7.png)

**Done!** The integration is on the **Integrations** list. To change it, click **Update** (the wrench icon) in its row, edit the settings and click **Save**.

### Execution and scheduling

Save to storage does not run by itself: add it as a task to a workflow, run the workflow and give it a schedule to keep the file up to date - see [Create a workflow](https://witcloud.ai/docs/workflow#create-a-workflow). The file appears after the first successful run.

### Where to find the file

The file is saved in your project's storage bucket, in a folder named `save-to-storage-` followed by the integration's ID. For a table, the file is named after the table (`daily_sales.csv`); for a Custom Query, the name starts with `query_job_result_`. Every run replaces the file, unless **Add date suffix to filename** is on. Open the bucket with **Open bucket** on the **Dashboard**.

![Dashboard with the Open bucket button](https://api.witcloud.ai/api/docs/assets/57607220e5d66054b389d48607b8e5a9.png)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://witcloud.ai/#website","@type":"WebSite","description":"WitCloud is a marketing and e-commerce analytics platform: connect your data, ask AI and track KPIs in one place.","inLanguage":"en-US","name":"WitCloud","url":"https://witcloud.ai/","publisher":{"@id":"https://witcloud.ai/#identity"}},{"@id":"https://witcloud.ai/docs/integrations/save-to-storage#webpage","@type":"WebPage","dateModified":"2026-10-08T07:44:29.110Z","description":"Export a BigQuery table or the saved result of a Custom Query to a CSV or AVRO file in your project's storage bucket, and refresh it on a schedule.","name":"Save to storage · WitCloud Docs","url":"https://witcloud.ai/docs/integrations/save-to-storage","breadcrumb":{"@id":"https://witcloud.ai/docs/integrations/save-to-storage#breadcrumb"},"isPartOf":{"@id":"https://witcloud.ai/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://witcloud.ai/docs/integrations/save-to-storage"]}],"primaryImageOfPage":{"@id":"https://witcloud.ai/#logo"}},{"@id":"https://witcloud.ai/#identity","@type":"Organization","name":"WitCloud","url":"https://witcloud.ai","logo":{"@id":"https://witcloud.ai/#logo"},"sameAs":[]},{"@id":"https://witcloud.ai/docs/integrations/save-to-storage#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Integrations","item":"https://witcloud.ai/docs/integrations","position":1},{"@type":"ListItem","name":"Save to storage","item":"https://witcloud.ai/docs/integrations/save-to-storage","position":2}]},{"@id":"https://witcloud.ai/docs/integrations/save-to-storage#article","dateModified":"2026-10-08T07:44:29.110Z","description":"Export a BigQuery table or the saved result of a Custom Query to a CSV or AVRO file in your project's storage bucket, and refresh it on a schedule.","headline":"Save to storage","inLanguage":"en-US","thumbnailUrl":"https://witcloud.ai/og-default.png","@type":["Article","TechArticle"],"author":{"@id":"https://witcloud.ai/docs/integrations/save-to-storage#/schema/person/1"},"image":{"@id":"https://witcloud.ai/docs/integrations/save-to-storage#/schema/image/1"},"isPartOf":{"@id":"https://witcloud.ai/docs/integrations/save-to-storage#webpage"},"mainEntityOfPage":{"@id":"https://witcloud.ai/docs/integrations/save-to-storage#webpage"},"publisher":{"@id":"https://witcloud.ai/#identity"}},{"@id":"https://witcloud.ai/docs/integrations/save-to-storage#/schema/person/1","@type":"Person","name":"WitCloud"},{"@id":"https://witcloud.ai/#logo","@type":"ImageObject","caption":"WitCloud","contentUrl":"https://witcloud.ai/logo.svg","inLanguage":"en-US","url":"https://witcloud.ai/logo.svg"},{"@id":"https://witcloud.ai/docs/integrations/save-to-storage#/schema/image/1","@type":"ImageObject","contentUrl":"https://witcloud.ai/og-default.png","inLanguage":"en-US","url":"https://witcloud.ai/og-default.png"}]}
```

## Sitemap

See the full [sitemap](https://witcloud.ai/sitemap.md) for all pages.
