> For the complete documentation index, see [llms.txt](https://docs-embed.anyflow.jp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-embed.anyflow.jp/wizard-editor/widget/csv.md).

# CSV（ファイル全体）

## 概要

CSVウィジェットではエンドユーザーからCSVファイルのアップロードを受け付け、中身を文字列としてソリューション内で利用することができます。

このウィジェットを使う場合はエンドユーザー変数の型&#x304C;**「String」**&#x3067;あることを推奨します。

<figure><img src="https://files.readme.io/73e77cb557b213a6868c185a616b1b90a4a9d379bbd388ea74e00fb31cc6e4e7-image.png" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="success" %}

### ヒント

このウィジェットはCSVの中身全体を読み込みます。\
CSVのヘッダーのみを読み込む場合は[CSV項目ウィジェット](https://1345286555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2SAP0zfldVFDluPfMXkq%2Fuploads%2FKqR8S7RCBDPFuUl7phxg%2Fcsv%20header?alt=media)をご利用ください。
{% endhint %}

## 使い方

String型のエンドユーザー変数を作成し、フィールドの入力方法を「CSV」にします。

<figure><img src="https://files.readme.io/fc766daa79405f2140a2776b547cf904563be3d2ad8d254b5ded0a44094d2d5d-image.png" alt="" width="563"><figcaption></figcaption></figure>

ソリューションの処理に[CSVアクション](/solution-editor/actions/data-transform/csv.md)を追加します。\
CSVコンテンツにはエンドユーザー変数を設定し、区切り文字やヘッダーの内容を適切に入力します。

<figure><img src="https://files.readme.io/6681f8215dd48e50faa4568d05568075a8d1d062ec13355d48595e8c80f8f937-image.png" alt="" width="563"><figcaption></figcaption></figure>

ウィザードでは、エンドユーザーにはCSVをアップロードするウィジェットが表示されます。

<figure><img src="https://files.readme.io/5f5c08e01bd53542e37099ec5e2465b3b238113ce5a4339052522436cec4c1e6-image.png" alt="" width="563"><figcaption></figcaption></figure>

CSVをアップロードすると、中身がプレビューされます。

<figure><img src="https://files.readme.io/2180743e8005de5ddf83179e4ec0b4a01bdeaa99ef733d01b1fa75d2bbe1658e-image.png" alt="" width="563"><figcaption></figcaption></figure>

* 左上の件数はCSVの行数です
* 右上の「CSVファイルをインポート」から別のCSVに置き換えできます
* 右上の「すべてクリア」を押すとCSVをアップロードする前の状態に戻ります

エンドユーザーがソリューションをインストールしソリューションが実行されると、CSVの各行が配列として処理されていることが分かります。

## 注意点

<figure><img src="https://files.readme.io/6c6815f87a0f4a52bfabee171cdc47fa36551ff451c5a2095f40529e91067092-image.png" alt="" width="563"><figcaption></figcaption></figure>

CSVウィジェットで扱えるファイルサイズは10MBまでに制限されています。

10MBを超える場合はウィジェットを複数配置し分割してアップロードするか、別の方法をご利用ください。


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs-embed.anyflow.jp/wizard-editor/widget/csv.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
