Microsoft Graph / users / <id> / events /不返回事件正文

时间:2016-10-18 16:26:00

标签: microsoft-graph

我与Microsoft Graph有效集成,但会议邀请的正文始终以空字符串形式返回。此外,&#34;主题&#34; param总是以会议组织者的名义提交,而不是会议主题。在下面找到(匿名)返回的正文。如果我在向微软提出问题之前误解了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
}

1 个答案:

答案 0 :(得分:2)

我一直在研究类似的应用程序,即通过Microsoft Graph API使用资源(房间)userPrincipalName获取日历事件,我遇到了同样的问题。我联系了Microsoft技术支持,他们向我建议了这个可能对您有帮助的链接。 Resource mailbox's calendar shows the organizer's name instead of the subject in an Exchange Server environment

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