> For the complete documentation index, see [llms.txt](https://docs.avonnicomponents.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avonnicomponents.com/flow/tutorials/components/csv-parser.md).

# CSV Parser

Step-by-step tutorials for the Avonni CSV Parser in screen flows, from a first import to pre-mapped columns, row review and tricky files.

The [CSV Parser](https://docs.avonnicomponents.com/flow/flow-components/csv-parser.md) lets a user drop a spreadsheet into a screen flow, match its columns to Salesforce fields, and hand the rows to the flow as records. These tutorials follow one example all the way: the leads an events team scans at a trade show booth.

{% hint style="info" %}
New to the component? Start with [Import a CSV file in a screen flow](https://docs.avonnicomponents.com/flow/tutorials/components/csv-parser/101-tutorial.md). Every other tutorial builds on that flow.
{% endhint %}

## Get started

Build a working import in a few minutes: upload, map, create the records.

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Import a CSV file in a screen flow</strong></td><td>Build a screen flow that turns a CSV of trade show booth scans into Leads, with the file checked and mapped on screen before one Create Records saves it.</td><td><a href="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2F4aJwqlQ6QRd4HA4qiAVr%2Fcsv-101-tutorial-result.png?alt=media">csv-101-tutorial-result.png</a></td><td><a href="https://docs.avonnicomponents.com/flow/tutorials/components/csv-parser/101-tutorial.md">Import a CSV file in a screen flow</a></td></tr></tbody></table>

## Import better

Save your users the mapping work, and let them check every row before anything is saved.

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Pre-map CSV columns for a recurring import</strong></td><td>Map the headers of a file that comes back every month once, in the flow, so users drop the export and press Next while required fields stay enforced.</td><td><a href="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2F8HlSKXpeIbkwzg3MruLz%2Fcsv-pre-map-csv-columns-result.png?alt=media">csv-pre-map-csv-columns-result.png</a></td><td><a href="https://docs.avonnicomponents.com/flow/tutorials/components/csv-parser/pre-map-csv-columns.md">Pre-map CSV columns for a recurring import</a></td></tr><tr><td><strong>Review rows before saving</strong></td><td>Show every row of an uploaded CSV in an editable Avonni Data Table, let the user fix typos, then create the records in one step.</td><td><a href="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FBDW6M3htuWhq3R1mme9F%2Fcsv-review-rows-before-saving-result.png?alt=media">csv-review-rows-before-saving-result.png</a></td><td><a href="https://docs.avonnicomponents.com/flow/tutorials/components/csv-parser/review-rows-before-saving.md">Review rows before saving</a></td></tr></tbody></table>

## Files and formats

Work with files that already live in Salesforce, and with files that do not parse the way you expect.

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Import a file stored in Salesforce</strong></td><td>Import a CSV already attached to a record with File Value, or keep the uploaded file on the record with Save as Content Document.</td><td><a href="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FXpKxAMAFm2rtrgAW0wXW%2Fcsv-import-a-file-stored-in-salesforce-result.png?alt=media">csv-import-a-file-stored-in-salesforce-result.png</a></td><td><a href="https://docs.avonnicomponents.com/flow/tutorials/components/csv-parser/import-a-file-stored-in-salesforce.md">Import a file stored in Salesforce</a></td></tr><tr><td><strong>Fix encoding and delimiter issues</strong></td><td>Diagnose a CSV file that imports wrong (garbled accents, one giant column, a title row) and fix it with the CSV Parser's Parser settings.</td><td><a href="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FrO5Sqd8pqGXnuXsmx6XP%2Fcsv-fix-encoding-and-delimiter-issues-result.png?alt=media">csv-fix-encoding-and-delimiter-issues-result.png</a></td><td><a href="https://docs.avonnicomponents.com/flow/tutorials/components/csv-parser/fix-encoding-and-delimiter-issues.md">Fix encoding and delimiter issues</a></td></tr></tbody></table>

Want the full property list? See the [CSV Parser](https://docs.avonnicomponents.com/flow/flow-components/csv-parser.md) reference.


---

# 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.avonnicomponents.com/flow/tutorials/components/csv-parser.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.
