> 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/chtoriaru/general/expressions-for-aura-sites.md).

# Auraサイト向けの式

Experience Cloud Aura サイトでは {!expression} 構文を使用して、ページに現在のユーザー情報、データカテゴリ画像、またはレコードの詳細を表示します。

式を使用して、コンポーネントの属性に渡すプロパティ値やその他の情報にアクセスできます。

式とは、リテラル値、変数、部分式、または演算子の任意の組み合わせで、1つの値に解決できるものです。メソッド呼び出しは式では使用できません。

式の構文は {!expression} で、expression は式のプレースホルダーです。

これらの式は、認証済みユーザーの情報、データカテゴリに関連付けられた画像、またはサイトページ上のレコード情報を表示します。

| 式                                                                           | 表示内容                                                                                                     |
| --------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| **`{!CurrentUser.name}`**                                                   | ユーザー詳細ページに表示される、ユーザーの名と姓を組み合わせた名前。                                                                       |
| **`{!CurrentUser.firstName}`**                                              | ユーザー編集ページに表示される、ユーザーの名。                                                                                  |
| **`{!CurrentUser.lastName}`**                                               | ユーザー編集ページに表示される、ユーザーの姓。                                                                                  |
| **`{!CurrentUser.userName}`**                                               | ユーザーのログイン名を定義する管理フィールド。                                                                                  |
| **`{!CurrentUser.id}`**                                                     | ユーザーの Salesforce ID。                                                                                     |
| **`{!CurrentUser.email}`**                                                  | ユーザーのメールアドレス。                                                                                            |
| **`{!CurrentUser.communityNickname}`**                                      | サイト内でユーザーを識別するために使用される名前。                                                                                |
| **`{!CurrentUser.accountId}`**                                              | ユーザーに関連付けられたアカウント ID。この式は、パートナーおよびカスタマーのユーザーに対して有効なアカウント IDを表示します。それ以外の場合は '000000000000000' を表示します。     |
| **`{!CurrentUser.effectiveAccountId}`**                                     | 有効なアカウントに関連付けられたアカウント ID。この式は、パートナーおよびカスタマーのユーザーに対して有効なアカウント IDを表示します。それ以外の場合は '000000000000000' を表示します。 |
| **`{!Global.PathPrefix}/{!DataCategory.Name}.jpg`**                         | 検索コンポーネント内のデータカテゴリに関連付けられた画像。                                                                            |
| **`{!Global.PathPrefix}/<Name of the Subfolder>/{!DataCategory.Name}.jpg`** | 検索コンポーネント内のサブフォルダーにあるデータカテゴリに関連付けられた画像。                                                                  |
| **`{!recordId}`**                                                           | オブジェクトページ上の15桁のレコード ID。                                                                                  |
| **`{!term}`**                                                               | Aura ベースの標準検索ページで、HTML エンコードされた検索語を返す式。                                                                  |


---

# 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/chtoriaru/general/expressions-for-aura-sites.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.
