Bug: findMeetingTimes throws “OrganizerUnavailable” on 15 minute start times

这一生的挚爱 提交于 2019-11-30 18:27:33

问题


When using the Graph API findMeetingTimes method on 15 minute start times (for example 3:15, or 3:45), the method will incorrectly throw a "emptySuggestionsReason = OrganizerUnavailable" error (and no rooms returned), whether rooms are available for that time, or not.

For example, this will error:

{
"timeConstraint": {
"timeslots": [
  {
    "start": {
      "dateTime": "2018-01-11T10:15:00",
      "timeZone": "Pacific Standard Time"
    },
    "end": {
      "dateTime": "2018-01-11T11:00:00",
      "timeZone": "Pacific Standard Time"
    }
  }
]...}

Whereas, this will not:

{
"timeConstraint": {
"timeslots": [
  {
    "start": {
      "dateTime": "2018-01-11T10:00:00",
      "timeZone": "Pacific Standard Time"
    },
    "end": {
      "dateTime": "2018-01-11T11:00:00",
      "timeZone": "Pacific Standard Time"
    }
  }
]...}

Note the "2018-01-11T10:15:00" start time.

UPDATE 1:

This appears to have been resolved, by setting the meetingDuration value: a) in 15 minute increments, and b) to the exact legnth of the proposed meeting, for example "meetingDuration": "PT45M".

UPDATE 2:

This issue is still not fully resolved: 1) There is now the ability to find 15 minute segments using "meetingDuration": "PT15M", BUT 2) NOT if the 15 minute segment butts up against an upcoming meeting.

For example, if the room has a pre-existing meeting at 1pm, the time option of 12:30 - 1:00pm can be found, the time of 12:30 - 12:45pm can be found, BUT the time of 12:45pm - 1:00pm still throws the error of "emptySuggestionsReason": "OrganizerUnavailable".

This is even using the option "activityDomain":"unrestricted".

Can someone at Microsoft please address this issue?

来源:https://stackoverflow.com/questions/48214744/bug-findmeetingtimes-throws-organizerunavailable-on-15-minute-start-times

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!