Unable to set isOrganizerOptional parameter, in findMeetingTimes

前提是你 提交于 2020-01-03 02:25:08

问题


In using Microsoft Graph, I am unable to set the IsOrganizerOptional parameter. This code works:

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

But, this code:

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

... throws the following error:

{
"error": {
    "code": "ErrorInternalServerError",
    "message": "Invalid value for arg:AttendeeConstraints, value:Microsoft.Exchange.Entities.DataModel.MeetingIntelligence.AttendeeConstraints\r\nParameter name: AttendeeConstraints",
    "innerError": {
        "request-id": "4dfbc6ec-cc13-4216-8760-fa2171a98370",
        "date": "2018-01-11T00:27:31"
    }
}}

How do I place the isOrganizerOptional parameter, to make it work?


回答1:


When searching for a meeting time without any Attendees, the Organizer cannot be optional. While the error is oddly worded, Invalid value for arg:AttendeeConstraints is telling you it cannot find a time when isOrganizerOptional is true and Attendees is null.



来源:https://stackoverflow.com/questions/48198233/unable-to-set-isorganizeroptional-parameter-in-findmeetingtimes

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