> 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/experience-cloud/experience-cloud-ja/puropatipaneru/interactions/download.md).

# ダウンロード

ユーザーがページを離れることなく、Avonni コンポーネントから直接ファイルをダウンロードできるようにします。直接 URL または Salesforce ファイル（Content Document）から利用できます。

## 概要

その **ダウンロード インタラクション** により、ユーザーは Avonni コンポーネント（たとえば [**データテーブル**](/experience-cloud/experience-cloud-ja/experience-components/ax-data-table.md) または [**リスト**](/experience-cloud/experience-cloud-ja/experience-components/ax-list.md)）を Experience Site 内で直接取得できます。これにより、レコードページやファイルライブラリに移動して重要なドキュメントにアクセスする必要がなくなり、ユーザーの操作がスムーズになります。

***

## 設定

Experience Site 内でファイルのダウンロードを有効にするには、次の手順に従ってください:

{% stepper %}
{% step %}

#### **コンポーネントを準備する**

Experience Cloud ページに Avonni Data Table または List を追加し、表示したいレコードにマッピングします。データソースに Content Document ID またはファイル URL が含まれていることを確認してください
{% endstep %}

{% step %}

#### **インタラクションを追加する**

コンポーネントのインタラクション設定をプロパティパネルで開きます。Experience Builder には独立した Interactions タブはなく、この設定は設定しているイベントのエディター内にあります。そこで、 **ダウンロード** をインタラクションとして **種類**。Data Table では、これを次の 2 つの方法でトリガーできます:

* **行アクションとして**：行末のドロップダウンであるアクションメニューにダウンロードコマンドを追加します。テーブルをすっきり保つのに最適です。
* **ボタン列として**：各レコードに対して「ダウンロード」ボタンまたはアイコンを備えた専用列を作成します。高い視認性と素早いアクセスに最適です

<figure><img src="https://9391847-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDL6JQuZArjJeQvX2ot4y%2Fuploads%2Fgit-blob-2ee42ad24987f4f71299e37961bc52205e6b7f11%2F2026-02-10_13-41-45.png?alt=media" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### **ソースを定義する**

* **URL**：特定の外部リンクやカスタム URL フィールドを参照するために使用します。
* **Content Document ID**：Salesforce ファイルを直接参照するために使用します。

> **注**：両方が指定されている場合、 **URL** 属性が優先されます。
> {% endstep %}

{% step %}

#### **公開アクセスを有効にする（重要）**

を使用する場合、 **Content Document ID**、トグルが表示されます **公開リンクを自動生成**.

* 外部ユーザー（顧客やパートナー）が権限の障害に遭うことなくファイルをダウンロードできるようにしたい場合は、Experience Site で必ずこれを有効にしてください。

<figure><img src="https://9391847-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDL6JQuZArjJeQvX2ot4y%2Fuploads%2Fgit-blob-2d71685a00cfd8d001c5f09a4b09a0bfbc15dbff%2F2026-02-10_13-41-4522.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

***

## 例

パートナーポータルで、パートナーが「利用可能なマーケティング資産」の一覧を表示している場面を想像してください。Data Table にダウンロードのインタラクションを追加すると：

* 各アセットの横に「ダウンロード」アイコンが表示されます。
* を有効にすると **公開リンクを自動生成**、パートナーは元々社内限定ライブラリにアップロードされたファイルであっても、PDF や画像をすぐにダウンロードできます。

***

## 重要な考慮事項

* **権限**： **公開リンクを自動生成** は可視性に役立ちますが、Experience Cloud プロファイルに表示対象のオブジェクトへの基本アクセス権があることを確認してください。
* **URL の正確性**： **URL** 方法を使用する場合は、スムーズなユーザー体験を確保するため、リンクがプレビューページではなく「直接ダウンロード」リンクであることを確認してください


---

# 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/experience-cloud/experience-cloud-ja/puropatipaneru/interactions/download.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.
