Microsoft Graph Beta getSchedule API不一致主题 [英] Microsoft Graph Beta getSchedule API inconsistency subject
问题描述
我认为以下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
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",
}
]
}
有什么问题的想法吗?
谢谢
推荐答案
此处的问题与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屋!