Microsoft Graph /users/<id>/events/ 没有 return 事件正文

Microsoft Graph /users/<id>/events/ doesn't return event body

我与 Microsoft Graph 的集成有效,但会议邀请的正文始终返回为空字符串。此外,"subject" 参数始终以会议组织者的姓名而非会议主题填写。在下面找到(匿名)返回的正文。我很好奇在向 Microsoft 提出问题之前我是否误解了 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 获取日历事件,我遇到了同样的问题。我联系了 Microsoft 技术支持,他们向我推荐了这个 link,这可能会对您有所帮助。 Resource mailbox's calendar shows the organizer's name instead of the subject in an Exchange Server environment

此外,请记住我遇到的另一个问题。在我的应用程序中,我想查看与会者列表是否发生任何更新,即是否有人接受或拒绝了邀请,或者有人被完全从列表中删除。但是,使用房间的 userPrincipalName 它是不可见的。无论更改如何,您的与会者名单都将保持不变。 根据产品设计,查看 responseStatus 更改的唯一方法是在与会者发送电子邮件时。资源的邮箱没有收到任何这些电子邮件,因此它是不可见的。此外,如果与会者决定在不发送电子邮件的情况下更改状态,那么除了与会者的其他任何 userPrincipalName 都看不到它。