首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >微软图形-无法获取微软交换室容量

微软图形-无法获取微软交换室容量
EN

Stack Overflow用户
提问于 2022-11-14 11:49:02
回答 1查看 29关注 0票数 1

如前所述,我目前无法在Microsoft Exchange中获取每个房间的容量。

下面是我的代码displays the room id, displayName, start time and end time的一部分。但是无论我在哪里搜索,room capacity属性都是无处可寻的。

代码语言:javascript
复制
    const data = calendarEvent.map((event: microsoftgraph.Event) => {
        return {
            id: event.id,
            title: event.location.displayName,
            capacity: event.location.roomCapacity, //(I know this isn't a real graph property) But in theory this is what I am trying to, but I am unable to find a property that has the name capacity. 
            allDay: false,
            start: new Date(event.start.dateTime + "z"), 
            end: new Date(event.end.dateTime + "z"),
        }
    });

我试过查看ms,/v1.0/me/events仍然没有称为容量的属性。https://developer.microsoft.com/en-us/graph/graph-explorer

EN

回答 1

Stack Overflow用户

发布于 2022-11-14 13:11:23

您需要使用该位置的displayName属性,并再次调用此端点。

代码语言:javascript
复制
https://graph.microsoft.com/v1.0/places/microsoft.graph.room
https://graph.microsoft.com/v1.0/places/microsoft.graph.room?$filter=displayName eq '{name}'

返回房间的集合。

房间资源类型具有属性capacity,该属性指定房间的容量。

资源:

列表位置

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74431148

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档