Microsoft Graph Beta getSchedule API 不一致主题 [英] Microsoft Graph Beta getSchedule API inconsistency subject
问题描述
我认为以下 API 端点中可能存在一个错误,用于获取不同会议室的日历事件:https://graph.microsoft.com/beta/me/calendar/getSchedule.我知道它仍处于测试阶段,并且我发现返回的会议数据有些不一致:
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
assubject
- Add another meeting
- Run again the query and see
username
assubject
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",
}
]
}
你知道什么地方出了问题吗?
Any idea about what might be wrong?
谢谢
推荐答案
这里的问题与 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
导入-PSSession $Session
Get-Mailbox -RecipientTypeDetails RoomMailbox |设置日历处理 -AddOrganizerToSubject $false -DeleteSubject $false
现在会议主题按预期显示.
Now the meeting subjects appear as expected.
这篇关于Microsoft Graph Beta getSchedule API 不一致主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!