2016-10-18 46 views
0

我與Microsoft Graph有效集成,但會議邀請的主體始終以空字符串形式返回。此外,「主題」參數始終以會議組織者的名字提交,而不是會議主題。找到下面(匿名)返回的正文。如果我在向Microsoft提出問題之前誤解了API規範,我很好奇。Microsoft Graph/users/<id>/events /不返回事件主體

{ 
    "@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": "[email protected]" 
      } 
     } 
    ], 
    "organizer": { 
     "emailAddress": { 
      "name": "API user", 
      "address": "[email protected]" 
     } 
    }, 
    "onlineMeetingUrl": null 
} 
+0

我看到此事件來自房間資源日曆。您是否看到普通用戶參與者缺乏相同的身體屬性值? –

+0

@ MichaelMainer-MSFT不,這是針對房間資源的。這是一個已知的問題,還是有意的限制? –

+0

只是澄清場景,您是否想要返回預定給定房間的一系列會議? –

回答

1

我一直工作在一個類似的應用,即通過微軟圖形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(其他參與者)看到該參與者。