Microsoft Graph Beta getSchedule API不一致主题 [英] Microsoft Graph Beta getSchedule API inconsistency subject

查看:79
本文介绍了Microsoft Graph Beta getSchedule API不一致主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为以下API端点中可能存在一个错误,以获取不同会议室的日历事件:

I think there might be a bug in the following API endpoint to get calendar events for different meeting rooms: https://graph.microsoft.com/beta/me/calendar/getSchedule. I know it is still beta and I see some inconsistency in returned data for meetings:

返回的数据更改时的测试方案: 登录用户: Bogdan C.

Testing scenario when the returned data changes: Logged in user: Bogdan C.

  • 添加会议
  • 查询API并将meeting title视为subject
  • 添加另一个会议
  • 再次运行查询,并在第一次会议上将username视作subject.
  • Add a meeting
  • Query the API and see meeting title as subject
  • Add another meeting
  • Run again the query and see username as subject for the first meeting.

作为测试方案: 请求正文:

As a test scenario: request body:

{
    schedules: ['room1'],
    //..other params
}

作为回应的一部分:

{
    "scheduleId": "room1",
    "scheduleItems": [
        {
            // first meeting added
            ...
            "subject": "**Bogdan C.**", // bad
            "location": "Room 1",                 
        },
        {
            ...
            "subject": "**Design meeting**", // good
            "location": "Room 1",
        }
    ]
}

有什么问题的想法吗?

谢谢

推荐答案

此处的问题与Outlook中的AddOrganizerToSubject和DeleteSubject日历处理变量有关,它们都默认为true.

The issue here was related to the AddOrganizerToSubject and DeleteSubject calendar processing variables in Outlook, which both default to true.

我们使用以下PowerShell命令对其进行了修复:

We fixed them with the following PowerShell commands:

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

Import-PSSession $Session

Get-Mailbox -RecipientTypeDetails RoomMailbox | Set-CalendarProcessing -AddOrganizerToSubject $false -DeleteSubject $false

现在会议主题按预期出现.

Now the meeting subjects appear as expected.

这篇关于Microsoft Graph Beta getSchedule API不一致主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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