# adaloのデータテーブルとairtableのデータテーブルのrelationの設定

**URL:** <https://www.nocode-faq.com/t/topic/2697>\
**Category:** Adalo\
**Tags:** api関連\
**Created:** [2022 年 3 月 13 日午前 4:09 UTC](https://www.nocode-faq.com/t/topic/2697 "2022-03-13T04:09:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kogakei0410](https://avatars.discourse-cdn.com/v4/letter/k/df788c/32.png) [@kogakei0410](https://www.nocode-faq.com/u/kogakei0410)\
**Post date:** [2022 年 3 月 13 日午前 4:09 UTC](https://www.nocode-faq.com/t/topic/2697/1 "2022-03-13T04:09:37Z")

</div>

###・前提条件 ・発生している問題・エラーメッセージ ・実装したい機能  
adaloにairtableのを連携させましたが  
adaloのDBデータに対し、airtableのDBデータとでrelationshipを組もうとしたところ  
うまくできませんでした。

adaloのDBと、airtableのDBとでrelationを組む方法がありましたら教えて下さい。

＜私の例＞  
adalo 側：都道府県DB  
airtable側：イベントDB

とをrelationさせたいのですが、adalo側からはrelationさせる候補として上がらず  
airtable側からはそもそもrelationの機能がないので、できないという状態です。

過去のトピックを漁ったものの  
解決策が見つからず、ご教示お願いいたします。

---

<div class="post-metadata">

**Author:** ![kogakei0410](https://avatars.discourse-cdn.com/v4/letter/k/df788c/32.png) [@kogakei0410](https://www.nocode-faq.com/u/kogakei0410)\
**Post date:** [2022 年 3 月 14 日午前 12:42 UTC](https://www.nocode-faq.com/t/topic/2697/2 "2022-03-14T00:42:54Z")

</div>

記載が漏れていましたが  
下記のページを確認しております。

ａｉｒｔａｂｌｅ上の各データ同士でｒｅｌａｔｉｏｎさせて  
adalo上で特殊なフィルタをかける…という対処のようですが  
この方法で、ｒｅｌａｔｉｏｎをとる形が正解なのでしょうか？

> **[Relationships & Airtable Collections](https://help.adalo.com/integrations/external-collections-with-apis/airtable/relationships-and-airtable-collections)**

---

<div class="post-metadata">

**Author:** ![kinari](https://sea2.discourse-cdn.com/flex020/user_avatar/www.nocode-faq.com/kinari/32/6625_2.png) [@kinari](https://www.nocode-faq.com/u/kinari)\
**Post date:** [2022 年 3 月 14 日午前 7:30 UTC](https://www.nocode-faq.com/t/topic/2697/3 "2022-03-14T07:30:33Z")

</div>

リレーションの種類は、都道府県:イベントが多:多ということですか？

---

<div class="post-metadata">

**Author:** ![tsubasa](https://sea2.discourse-cdn.com/flex020/user_avatar/www.nocode-faq.com/tsubasa/32/8670_2.png) [@tsubasa](https://www.nocode-faq.com/u/tsubasa)\
**Post date:** [2022 年 3 月 14 日午前 9:34 UTC](https://www.nocode-faq.com/t/topic/2697/4 "2022-03-14T09:34:50Z")

</div>

@kogakei0410

> **[Relationships & Airtable Collections](https://help.adalo.com/integrations/external-collections-with-apis/airtable/relationships-and-airtable-collections)**

この方法は、おそらく、厳密には、Relationではなくフィルリングになりますね。  
Airtable側からはそもそもRelationの機能は無いです。

例えば、  
DBが、  
adalo ： 都道府県DB  
airtable： 都道府県DB イベントDB

という構成があったときに、

Adalo側で 都道府県をKeyに  
Airtable側のイベントDBを表示させる ということは上記のリンクのやり方で可能です。

\*フィルタリングの場合は、リレーションでは無いので、片側を変更しても、変更されないです。

---

<div class="post-metadata">

**Author:** ![kogakei0410](https://avatars.discourse-cdn.com/v4/letter/k/df788c/32.png) [@kogakei0410](https://www.nocode-faq.com/u/kogakei0410)\
**Post date:** [2022 年 3 月 15 日午前 1:42 UTC](https://www.nocode-faq.com/t/topic/2697/5 "2022-03-15T01:42:33Z")

</div>

なるほど、adaloとエアテーブルのDBどうしでのrelationはとれないのですね。

そうすると、いまadalo上でrelationで機能しているDBを  
エアテーブルを導入して移行するといろいろと難しそうですね。  
導入するメリットがあまりない気がしてきました💦

あくまでもデータの分析のための保管庫としてエアテーブルを位置づけて  
実際のアプリの処理には使わず  
重要なデータ（ユーザーやイベントなど）が更新された際に  
エアテーブル上にコピーを作成して保管するだけ…とかの方が良い気がしてきました。

私は、リレーションが使えない状態ではかなり不便・・・と思うのですが  
皆様は、リレーションが使えなくてもエアテーブルをadaloへ導入する意義は  
どの様なところにあると感じてますか？

---

<div class="post-metadata">

**Author:** ![tsubasa](https://sea2.discourse-cdn.com/flex020/user_avatar/www.nocode-faq.com/tsubasa/32/8670_2.png) [@tsubasa](https://www.nocode-faq.com/u/tsubasa)\
**Post date:** [2022 年 3 月 15 日午前 1:49 UTC](https://www.nocode-faq.com/t/topic/2697/6 "2022-03-15T01:49:15Z")

</div>

> 皆様は、リレーションが使えなくてもエアテーブルをadaloへ導入する意義は

Adalo だけでは、計算できないものを計算するときに、Airtableを使ってます。  
例えば、12:00 ～ 12:10 の時間が、10分というのは、Adaloでは表現しきることは難しいともいますが、AirtableならDate関数があるので、それ計算できたりします。

> **[Formulas and Date Fields - Overview | Airtable Support](https://support.airtable.com/docs/formulas-and-date-fields)**
>
> If you would like to incorporate a date (and time) type field into a formula field, the best way to format that date is using the...

基本の外部か内部かにする考え方は、  
コアなデータは、 Adalo。（その使っているサービス）  
計算や、計測などは、外部アプリへ。

という分け方をしてます。

---

<div class="post-metadata">

**Author:** ![kogakei0410](https://avatars.discourse-cdn.com/v4/letter/k/df788c/32.png) [@kogakei0410](https://www.nocode-faq.com/u/kogakei0410)\
**Post date:** [2022 年 3 月 15 日午前 10:33 UTC](https://www.nocode-faq.com/t/topic/2697/7 "2022-03-15T10:33:43Z")

</div>

ありがとうございます！なるほど。  
計算、計測が必要なものだけ外部というのはわかりやすい考えですね 😃

私の場合、計算 は現時点でマストな要素ではないですが  
userの分析など（計測）が必要なので、必要なものをairtableへ自動保存する仕組みだけ構築すれば何とかなりそうな気がしてきました！
