findMeetingTimes返回没有结果,空的原因为Unknown

时间:2018-05-23 22:17:24

标签: json microsoft-graph

当我认为应该有结果时,MS Graph API命令findMeetingTimes通常会返回空MeetingSuggestions的{​​{1}} Unknown。我想了解更多关于什么产生未知结果以及我是否正确使用findMeetingTimes的信息。

我的请求很简单,findMeetingTimes是从上午9:30到上午11:30的一小时,其中组织者是可选的,最小参与者百分比设置为0%。我觉得我应该总是在这个场景中得到一些结果,但我发现因为未知而一直没有得到任何结果。有什么原因导致这方面的帮助吗?

请求

{
  "timeConstraint": {
  "timeslots": [
   {
    "start": {
      "dateTime": "2018-05-24T09:30:00",
      "timeZone": "Eastern Standard Time"
    },
    "end": {
      "dateTime": "2018-05-24T11:30:00",
      "timeZone": "Eastern Standard Time"
    }
  }]
},
  "meetingDuration": "PT1H",
  "isOrganizerOptional": true,
  "minimumAttendeePercentage": 0,
}

返回

{
  "emptySuggestionsReason": "Unknown",
  "meetingTimeSuggestions": []
}

备注:我在这段时间很忙,所以我作为请求的一部分添加了一位与会者

1 个答案:

答案 0 :(得分:0)

创建JSON对象以使与会者存在,但您可以将其保留为空

"attendees": [
],

我运行以下命令,一切正常:

{
  "attendees": [
  ],
  "timeConstraint": {
    "timeslots": [
      {
        "start": {
          "dateTime": "2018-06-25T12:45:00.000Z",
          "timeZone": "Pacific Standard Time"
        },
        "end": {
          "dateTime": "2018-06-25T22:39:07.097Z",
          "timeZone": "Pacific Standard Time"
        }
      }
    ]
  },
  "locationConstraint": {
    "isRequired": "true",
    "suggestLocation": "true",
    "locations": [

    ]
  },
  "meetingDuration": "PT30M",
    "returnSuggestionReasons": "true",
  "maxCandidates": "4",
    "minimumAttendeePercentage": "100"
}