# 特定の施設グループの予定を一括で取得したい

**URL:** <https://community.cybozu.dev/t/topic/2802>\
**Category:** Garoon カスタマイズ\
**Created:** [2018 年 1 月 17 日午前 4:13 UTC](https://community.cybozu.dev/t/topic/2802 "2018-01-17T04:13:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Legacy\_Account596](https://avatars.discourse-cdn.com/v4/letter/l/f14d63/32.png) [@Legacy\_Account596](https://community.cybozu.dev/u/Legacy_Account596)\
**Post date:** [2018 年 1 月 17 日午前 4:13 UTC](https://community.cybozu.dev/t/topic/2802/1 "2018-01-17T04:13:37Z")

</div>

特定の施設グループの予定を一括で取得したいのですが、方法はないでしょうか？

`ScheduleGetEventsByTarget`で特定の施設の予定は取ることはできたのですが、画面で見るようにグループ全体の予定を取得したいです。

`[https://developer.cybozu.io/hc/ja/articles/202463180#step4`]([https://developer.cybozu.io/hc/ja/articles/202463180#step4`](https://developer.cybozu.io/hc/ja/articles/202463180#step4%60))

group/@idに施設グループIDなどを入れてみましたが取得できませんでした。

&nbsp;

よろしくお願いします！

---

<div class="post-metadata">

**Author:** ![Legacy\_Account](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@Legacy\_Account](https://community.cybozu.dev/u/Legacy_Account)\
**Post date:** [2018 年 1 月 18 日午前 5:16 UTC](https://community.cybozu.dev/t/topic/2802/2 "2018-01-18T05:16:24Z")

</div>

awatanabeさん

REST APIで複数ユーザー/施設の予定を一括で取得する方法はなさそうです。

1つずつ施設のidを設定するしかなさそうですね。

&nbsp;

記載していただいているページ`[https://developer.cybozu.io/hc/ja/articles/202463180#step4`](/hc/ja/articles/202463180#step4%60)の「group/@id」についても、

「組織に所属するユーザーの予定」ではなく「組織自体の予定」を取得するAPIとなっています。

---

<div class="post-metadata">

**Author:** ![Legacy\_Account596](https://avatars.discourse-cdn.com/v4/letter/l/f14d63/32.png) [@Legacy\_Account596](https://community.cybozu.dev/u/Legacy_Account596)\
**Post date:** [2018 年 1 月 18 日午前 5:44 UTC](https://community.cybozu.dev/t/topic/2802/3 "2018-01-18T05:44:41Z")

</div>

BBさん

ありがとうございます。

なるほど、やはり一つずつ取得するしかないのですね。

それで進めることにします。

ありがとうございました！
