> For the complete documentation index, see [llms.txt](https://docs.middle.app/middle-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.middle.app/middle-docs/product/accounts/workflow-steps/file-export.md).

# File export

Export data stored in Middle to a file for use in later workflow actions

The **File Export** step creates a compressed `.bz2` file from stored data. Later actions in the workflow can access the file through a download URL.

### Configure an export

Add a **File Export** step to your workflow.

Configure the export by selecting:

* The data type to export.
* The fields to include in the file.
* Whether to filter records by their last updated timestamp.

![Configure the data and fields to include in a file export](https://932524191-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mks_UuU2atghAuA9bQz%2Fuploads%2FYO3vV3aC5FR1RgwHrJVP%2FScreenshot%202025-09-04%20at%2012.23.22%E2%80%AFPM.png?alt=media\&token=c2bd8e46-7d6e-4315-a779-5d0512adcef1)

### Use the exported file

Pass the file's download URL to a later action that can accept it. This allows a workflow to prepare a file and then deliver or import it into another system.

For data that needs standardization first, use a Create or Update Record Step in a preparation workflow to save the transformed records. A separate scheduled workflow can export those records and deliver the file.

![File Export output in a workflow](https://932524191-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mks_UuU2atghAuA9bQz%2Fuploads%2FcyN0qlkv5YaOEpIFQBMZ%2FScreenshot%202025-09-04%20at%2012.21.31%E2%80%AFPM.png?alt=media\&token=4683ee45-fb10-4624-a306-dcec525c8c9f)

### Related documentation

{% content-ref url="/pages/J3zgn3Bfr7eBmlW9ht6c" %}
[Action](https://docs.middle.app/middle-docs/product/accounts/workflow-steps/action.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MlClKo-Xl6F31yC\_oE4" %}
[Triggers](https://docs.middle.app/middle-docs/product/accounts/workflow-triggers.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.middle.app/middle-docs/product/accounts/workflow-steps/file-export.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
