我与Microsoft Graph有一个有效的集成,但是会议邀请的主体总是作为空字符串返回。此外,"subject"参数总是与会议组织者的名称一起归档,而不是会议主题。在下面找到(匿名)返回的尸体。在我向微软提交问题之前,我很好奇我是否误解了API规范。
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('codingconferenceroom%40foo.onmicrosoft.com')/events/$entity",
"@odata.etag": "W/"0WG02jiCr0KWGp+LyVIbbQAAAGI7qw=="",
"id": "AAMkAGVhNjY4ODEzLTczNzMtNDA4Ny04ZDRhLTQzM2ZjYjBkNjJjZQBGAAAAAABkfHRPWtE1SJSESH8oJuShBwDRYbTaOIKvQpYan4vJUhttAAAAAAENAADRYbTaOIKvQpYan4vJUhttAAAAYhFcAAA=",
"createdDateTime": "2016-10-18T16:06:26.7490468Z",
"lastModifiedDateTime": "2016-10-18T16:06:33.1931576Z",
"changeKey": "0WG02jiCr0KWGp+LyVIbbQAAAGI7qw==",
"categories": [],
"originalStartTimeZone": "Eastern Standard Time",
"originalEndTimeZone": "Eastern Standard Time",
"responseStatus": {
"response": "accepted",
"time": "2016-10-18T16:06:26.9432002Z"
},
"iCalUId": "040000008200E00074C5B7101A82E0080000000028DB2E925929D2010000000000000000100000007CED5B09FC262149A6E0A253EF628393",
"reminderMinutesBeforeStart": 15,
"isReminderOn": false,
"hasAttachments": false,
"subject": "API user",
"body": {
"contentType": "text",
"content": ""
},
"bodyPreview": "",
"importance": "normal",
"sensitivity": "normal",
"start": {
"dateTime": "2016-10-18T21:30:00.0000000",
"timeZone": "UTC"
},
"end": {
"dateTime": "2016-10-18T22:30:00.0000000",
"timeZone": "UTC"
},
"location": {
"displayName": "My Fun Conference Room",
"address": {
"street": "",
"city": "",
"state": "",
"countryOrRegion": "",
"postalCode": ""
}
},
"isAllDay": false,
"isCancelled": false,
"isOrganizer": false,
"recurrence": null,
"responseRequested": true,
"seriesMasterId": null,
"showAs": "busy",
"type": "singleInstance",
"attendees": [
{
"status": {
"response": "none",
"time": "0001-01-01T00:00:00Z"
},
"type": "required",
"emailAddress": {
"name": "API user",
"address": "user@foo.onmicrosoft.com"
}
}
],
"organizer": {
"emailAddress": {
"name": "API user",
"address": "user@foo.onmicrosoft.com"
}
},
"onlineMeetingUrl": null
}
我一直在研究一个类似的应用程序,即通过Microsoft Graph API使用资源(房间)userPrincipalName获取日历事件,我也遇到了同样的问题。我联系了微软技术支持,他们给我推荐了这个链接,可能对你有帮助。资源邮箱的日历显示组织者的名称,而不是Exchange Server环境中的主题
此外,请记住我遇到的另一个问题。在我的应用程序中,我想看看是否有任何更新发生在与会者列表中,即如果有人接受或拒绝邀请,或者有人被完全从列表中删除。但是,使用房间的userPrincipalName时,它是不可见的。无论如何更改,您的与会者列表都将保持不变。根据产品设计,只有当与会者发送电子邮件时,才能看到responseStatus的变化。资源的邮箱没有收到任何这些电子邮件,因此它不可见。此外,如果参与者决定在不发送电子邮件的情况下更改状态,则不会从其他参与者的userPrincipalName中看到。