MS Graph创建事件无法与getSchedule一起正常使用 [英] MS Graph create event not work properly with getSchedule

查看:71
本文介绍了MS Graph创建事件无法与getSchedule一起正常使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对不起,我是MS Graph的新手.我正在开发一个应用程序,以提取我公司过去一小时/一天/一周/一个月的会议历史记录数据.我正在开发一个用于创建事件的工具.我使用创建事件,创建事件后,我将getSchedule和日程表用作同一会议室,但未找到任何内容.我可以在Outlook中看到会议,但看起来不正确.例如对于同一个会议室,在正常情况下,它将显示容量(例如100人),对于通过API创建的会议,我找不到此类信息.这是我在create事件中使用的代码:

sorry I'm new to MS Graph. I'm working on a app to extract meeting history data for past hour/day/week/month for my company. I'm working on a tool to create event. I use create event, after I create event, I use getSchedule with schedules as the same meeting room, but nothing found. I can see the meeting in outlook, but does not appear correct. e.g. for the same meeting room, in normal case, it will show the capacity (e.g. 100 people), for the meeting created from API, I cannot find that kind of information. here is code I used in create event:

"location": {
    "displayName": "London-DaVinci"
}

这是displayName,我也用电子邮件地址和别名进行了测试,但它们都不起作用.怎么可能出问题了?

here is the displayName, I also tested with email address and alias, none of them works. what could be go wrong?

谢谢韦斯

推荐答案

好,我尝试了以下方法及其对我有用:

Ok, i tried the following and its working for me:

  1. 创建新会议室
  2. 调用事件Graph API调用并确保上述会议室是其中的一部分
  3. 上面将创建一个新事件
  4. 现在为会议室的上述时间戳进行getschedule API调用
  5. 图形api调用将返回忙碌信息

就像这样:

Request:

    graph.microsoft.com/v1.0/me/calendar/getschedule (add the payload to
    get the schedule for the meeting room) 

Response: 

"value": [ { "scheduleId":
    "testroombox@contoso.onmicrosoft.com", "availabilityView":
    "000111111111111111111111111110000"

这篇关于MS Graph创建事件无法与getSchedule一起正常使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆