0

出于某种原因,当我调用上述 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 个位置被排除在外。有没有办法解决这个问题来返回所有位置?谢谢。

4

0 回答 0