Microsoft Graph FindMeetingTimes API-仅返回5个位置?

时间:2019-04-02 12:19:18

标签: json microsoft-graph microsoft-graph-calendar

由于某种原因,当我调用上述API时,即使我传入了9,也只返回了5个位置。所有房间此时都可用。 例如,没有出现的位置,如果我将请求更改为仅尝试查找这些房间的会议时间,它将成功返回会议建议(即它们是免费的)。

我也曾尝试在请求中使用参数MaxCandidates,但这没什么区别。

我的帖子:

{
  "attendees": [
    {
      "emailAddress": {
        "address": "LiamLaverty@qubbook.onmicrosoft.com",
        "name": "Liam Laverty"
      },
      "type": "Required"
    }
  ],
  "timeConstraint": {
    "activityDomain": "unrestricted",
    "timeslots": [
      {
        "start": {
          "dateTime": "2019-04-01 13:00:00",
          "timeZone": "UTC"
        },
        "end": {
          "dateTime": "2019-04-01 14:00:00",
          "timeZone": "UTC"
        }
      }
    ]
  },
  "locationConstraint": {
    "isRequired": "true",
    "suggestLocation": "false",
    "locations": [
      {
        "displayName": "First Floor Project Room 1 O2.032 Project Room",
        "locationEmailAddress": "firstfloorprojectroom1@qubbook.onmicrosoft.com"
      },
      {
        "displayName": "First Floor Project Room 2 O2.033 Project Room",
        "locationEmailAddress": "firstfloorprojectroom2@qubbook.onmicrosoft.com"
      },
      {
        "displayName": "OG.034 Project Room",
        "locationEmailAddress": "gfprojectroom2@qubbook.onmicrosoft.com"
      },
      {
        "displayName": "GF Project Room 1 - 0G.037",
        "locationEmailAddress": "gfprojectroom1@qubbook.onmicrosoft.com"
      },
      {
        "displayName": "First Floor Lab",
        "locationEmailAddress": "FirstFloorLab@qubbook.onmicrosoft.com"
      },
      {
        "displayName": "First Floor Test Meeting Room 1",
        "locationEmailAddress": "FirstFloorTestMeetingRoom1@qubbook.onmicrosoft.com"
      },
      {
        "displayName": "Ground Floor Test Meeting Room 1",
        "locationEmailAddress": "GroundFloorTestMeetingRoom1@qubbook.onmicrosoft.com"
      },
      {
        "displayName": "McClay Ground Floor Room 1",
        "locationEmailAddress": "mcclaygroundfloorstudyroom1@qubbook.onmicrosoft.com"
      },
      {
        "displayName": "Meeting Room One Medical Library",
        "locationEmailAddress": "medicallibraryroom1@qubbook.onmicrosoft.com"
      }
    ]
  },
  "meetingDuration": "PT1H",
  "minimumAttendeePercentage": "100",
  "maxCandidates": 99
}

响应:

{
  "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#microsoft.graph.meetingTimeSuggestionsResult",
  "emptySuggestionsReason": "",
  "meetingTimeSuggestions": [
    {
      "confidence": 100,
      "order": 1,
      "organizerAvailability": "free",
      "attendeeAvailability": [],
      "locations": [
        {
          "displayName": "Meeting Room One Medical Library",
          "locationEmailAddress": "medicallibraryroom1@qubbook.onmicrosoft.com",
          "locationType": "conferenceRoom"
        },
        {
          "displayName": "McClay Ground Floor Room 1",
          "locationEmailAddress": "mcclaygroundfloorstudyroom1@qubbook.onmicrosoft.com",
          "locationType": "conferenceRoom"
        },
        {
          "displayName": "Ground Floor Test Meeting Room 1",
          "locationEmailAddress": "GroundFloorTestMeetingRoom1@qubbook.onmicrosoft.com",
          "locationType": "conferenceRoom"
        },
        {
          "displayName": "First Floor Test Meeting Room 1",
          "locationEmailAddress": "FirstFloorTestMeetingRoom1@qubbook.onmicrosoft.com",
          "locationType": "conferenceRoom"
        },
        {
          "displayName": "First Floor Lab",
          "locationEmailAddress": "FirstFloorLab@qubbook.onmicrosoft.com",
          "locationType": "conferenceRoom"
        }
      ],
      "meetingTimeSlot": {
        "start": {
          "dateTime": "2019-04-01T13:00:00.0000000",
          "timeZone": "UTC"
        },
        "end": {
          "dateTime": "2019-04-01T14:00:00.0000000",
          "timeZone": "UTC"
        }
      }
    }
  ]
}

我的请求帖子中的前4个位置被排除在外。是否有办法解决此问题? 谢谢。

0 个答案:

没有答案