如果“ isRequired”和“ suggestLocation”设置为true,则Graph API上的FindMeetingTimes返回“ LocationsUnavailable”

时间:2018-10-16 05:45:03

标签: api time response microsoft-graph payload

我正在使用Graph API上的“ FindMeetingTImes方法来检查会议室的可用性。这些会议室是在Office365 Exchange中设置的。

按照标题,当我将以下字段设置为true时:

  • “ isRequired”:“ true”,
  • “ suggestLocation”:“ true”,

Graph API响应始终为:

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#microsoft.graph.meetingTimeSuggestionsResult",
    "emptySuggestionsReason": "LocationsUnavailable",
    "meetingTimeSuggestions": []
}

当房间没有其他预订时会发生这种情况。

这是我的有效载荷(未标识):

{
  "attendees": [
    {
      "emailAddress": {
        "address": "{{user_email}}",
        "name": "{{user_name}}"
      },
      "type": "Required"
    }
  ],
  "timeConstraint": {
    "timeslots": [
      {
        "start": {
          "dateTime": "2018-10-18T09:00:00.000Z",
          "timeZone": "AUS Eastern Standard Time"
        },
        "end": {
          "dateTime": "2018-10-18T12:00:00.000Z",
          "timeZone": "AUS Eastern Standard Time"
        }
      }
    ]
  },
  "locationConstraint": {
    "isRequired": "true",
    "suggestLocation": "true",
    "locations": [
      {
        "resolveAvailability": "true",
        "displayName": "{{room_1_name}}",
        "locationEmailAddress": "{{room_1_email}}",
      }
    ]
  },
  "meetingDuration": "PT1H"
}

我有什么想念的地方吗?

任何帮助将不胜感激!

0 个答案:

没有答案