# Repeating GroupにAirTableを使った場合のデータのリフレッシュ方法

**URL:** <https://www.nocode-faq.com/t/topic/1902>\
**Category:** bubble\
**Created:** [2021 年 7 月 19 日午前 10:18 UTC](https://www.nocode-faq.com/t/topic/1902 "2021-07-19T10:18:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tak](https://sea2.discourse-cdn.com/flex020/user_avatar/www.nocode-faq.com/tak/32/2745_2.png) [@Tak](https://www.nocode-faq.com/u/Tak)\
**Post date:** [2021 年 7 月 19 日午前 10:18 UTC](https://www.nocode-faq.com/t/topic/1902/1 "2021-07-19T10:18:04Z")

</div>

BubbleでRepeating GroupのデータソースにAirTableを指定して一覧表示を作ったときに、  
AirTable側でデータを追加したあとなどに、Bubbleの画面でボタンを押して、ワークフローでデータをリロードさせたいのですが、うまく反映されません。

bubble側でAirTableのAPIで行追加した場合は、Repeating Groupの一覧データが更新されるのを確認できています。

Refresh Pageをすればもちろん更新できるのですが、遅いのでできればしたくありません。  
Repeating Groupに対して、Clear listやDisplay listをしてもAirtableからデータを取り直してくれずに反映されませんでした。

強制的にAirtableからデータを取り直す方法などはありますでしょうか？

AirtableのプラグインはBy bubbleのものを使用しています。

---

<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:** [2021 年 7 月 19 日午後 1:34 UTC](https://www.nocode-faq.com/t/topic/1902/2 "2021-07-19T13:34:11Z")

</div>

ちょうど同じ悩みの方がいますね。

Airtableを編集し、Bubbleでこれをトリガーすると、リピートグループがデータを再読み込みするようです。

# [Airtable - Is there a better way to refresh the repeating group than this workaround?](https://forum.bubble.io/t/airtable-is-there-a-better-way-to-refresh-the-repeating-group-than-this-workaround/105545)

> **[Airtable - Is there a better way to refresh the repeating group than this...](https://forum.bubble.io/t/airtable-is-there-a-better-way-to-refresh-the-repeating-group-than-this-workaround/105545)**
>
> Hello, since I struggled to get the Airtable API and the refresh to work (the API by Taiheta). I’m using the API provided by bubble , and since it has no update function, I came up with a workaround - by triggering a “Modify an Airtable record”....

---

<div class="post-metadata">

**Author:** ![Tak](https://sea2.discourse-cdn.com/flex020/user_avatar/www.nocode-faq.com/tak/32/2745_2.png) [@Tak](https://www.nocode-faq.com/u/Tak)\
**Post date:** [2021 年 7 月 19 日午後 1:49 UTC](https://www.nocode-faq.com/t/topic/1902/3 "2021-07-19T13:49:59Z")

</div>

ありがとうございます。参考になりました。

これはかなり裏技的なやり方ですね。  
データを取り直すためにあえてレコードを更新して変更を発生させるとリロードされるんですね。  
試してみて確かに更新できることが確認できました。

読みたいだけなのに、同じ値とはいえ更新までするのはちょっと抵抗がありますが、取得し直すという目的は達成できました。

他にも方法がないか模索してみます。ありがとうございます。

---

<div class="post-metadata">

**Author:** ![Tak](https://sea2.discourse-cdn.com/flex020/user_avatar/www.nocode-faq.com/tak/32/2745_2.png) [@Tak](https://www.nocode-faq.com/u/Tak)\
**Post date:** [2021 年 7 月 28 日午前 4:45 UTC](https://www.nocode-faq.com/t/topic/1902/4 "2021-07-28T04:45:58Z")

</div>

問題解決しましたのでフィードバックしておきます。

- データソースのConstraintにカスタムステートの値を使用する
- ボタンを押した時など、検索したいときにカスタムステートの値を更新する

とすることで取得しなおすことができました。Constraintに指定する条件で取れてくるレコードが変わってはいけないので、そのへんは上手いこと影響のない検索条件を指定すると良いと思います。  
（例えば無意味なカウンターなどを検索条件に使うなど）

私の場合は、AirTableのレコードにcreated\_timeのフィールドを持ち、レコード作成日時を保持しています。

検索実行時には現在日時より前のcreated\_timeを指定することで、全レコードが対象になるようにしました。ボタンを押すたびに現在日時は変化するので、状態が変化して検索のための通信は毎回行われます。

---

<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:** [2021 年 7 月 28 日午前 6:05 UTC](https://www.nocode-faq.com/t/topic/1902/5 "2021-07-28T06:05:59Z")

</div>

created\_time を利用したのですね！  
わざわざ、解決法までコメント頂きましてありがとうございますー。
