# リレーションシップとAirtableコレクション

関係性と外部コレクションを扱うことは、通常のコレクション内の関係性よりも少し複雑ですが、リストとフィルターを使用して目的を達成することができます。

例えば、AirtableにはTrips（旅行）とActivities（アクティビティ）という2つのテーブルがあり、それぞれがAdalo内で独自の外部コレクションとして設定されているとします。アプリのホーム画面にはTripsのリストが表示され、TripをクリックするとTripの詳細画面に移動し、Tripの名前と説明、およびそのTripのすべてのアクティビティを表示したいとします。そして、Airtableでは、各アクティビティレコードがTripレコードに関連付けられています。

Tripの詳細画面で、現在のTripに属するアクティビティのみを表示するには、Activitiesリストに次のようなフィルターを追加します：

![](/files/IGtIcblBd0OjDsyxttnF)

このフィルターは、基本的には、関連するAirtable内のTripの名前がユーザーがホーム画面のTripsリストからクリックした現在のTripの名前と同じであるアクティビティのみを含めるということを示しています。


---

# Agent Instructions: 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:

```
GET https://help.adalo.com/ja/integrations/airtable/relationships-and-airtable-collections.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
