# 関連レコード一覧の件数を複数取得したい

**URL:** <https://community.cybozu.dev/t/topic/7790>\
**Category:** kintone 開発相談\
**Created:** [2023 年 7 月 12 日午前 2:23 UTC](https://community.cybozu.dev/t/topic/7790 "2023-07-12T02:23:31Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![mls-hashimoto](https://sea1.discourse-cdn.com/flex015/user_avatar/community.cybozu.dev/mls-hashimoto/32/34_2.png) [@mls-hashimoto](https://community.cybozu.dev/u/mls-hashimoto)\
**Post date:** [2023 年 7 月 13 日午前 3:42 UTC](https://community.cybozu.dev/t/topic/7790/4 "2023-07-13T03:42:11Z")

</div>

その方法を提示したつもりでした。問題あったでしょうか。

オブジェクトの配列を宣言してループする処理の[サンプル](https://www.freecodecamp.org/japanese/news/javascript-array-of-objects-tutorial-how-to-create-update-and-loop-through-objects-using-js-array-methods/)があったので、参考になるかもしれません。

あるいは江田様が作ったクエリを書かずに集計できる[コンストラクタ](https://community.cybozu.dev/t/topic/3242)を使えば、記述量が少なく済むので簡単に書けるかもしれません。

---

_[View the full topic](https://community.cybozu.dev/t/topic/7790)._
