FindMeetingTimes API不返回同一日期的预期输出

时间:2017-10-12 06:52:45

标签: c# uwp microsoft-graph office365api

我正在使用Microsoft Graph Library的 FindMeetingTimes API。我发送请求

{  
   "attendees":[  
      {  
         "emailAddress":{  
            "address":"aparna@meetingassistant.onmicrosoft.com",
            "name":"Aparna Banerjee"
         },
         "type":"Required"
      },
      {  
         "emailAddress":{  
            "address":"pallavi01@meetingassistant.onmicrosoft.com",
            "name":"Pallavi Chowdhery"
         },
         "type":"Required"
      }
   ],
   "timeConstraint":{  
      "timeslots":[  
         {  
            "start":{  
               "dateTime":"2017-10-12T18:00:00",
               "timeZone":"India Standard Time"
            },
            "end":{  
               "dateTime":"2017-10-12T19:00:00",
               "timeZone":"India Standard Time"
            }
         }
      ],
      "activityDomain":"work"
   },
   "locationConstraint":{  
      "isRequired":true,
      "suggestLocation":false,
      "locations":[  
         {  
            "displayName":"Room 101",
            "locationEmailAddress":"Meetingroom101@meetingassistant.onmicrosoft.com",
            "resolveAvailability":"true"
         },
         {  
            "displayName":"Room 303",
            "locationEmailAddress":"meetingroom303@meetingassistant.onmicrosoft.com",
            "resolveAvailability":"true"
         },
         {  
            "displayName":"Room 402",
            "locationEmailAddress":"meetingroom402@meetingassistant.onmicrosoft.com",
            "resolveAvailability":"true"
         },
         {  
            "displayName":"Room 007",
            "locationEmailAddress":"meetingroom007@meetingassistant.onmicrosoft.com",
            "resolveAvailability":"true"
         }
      ]
   },
   "meetingDuration":"PT30M",
   "returnSuggestionReasons":"true",
   "minimumAttendeePercentage":"100"
}

我的问题是针对selected Date & Time,API正在给我这样的回复

{  
   "@odata.context":"https://graph.microsoft.com/v1.0/$metadata#microsoft.graph.meetingTimeSuggestionsResult",
   "emptySuggestionsReason":"Unknown",
   "meetingTimeSuggestions":[  

   ]
}

有时我也得到AttendeesUnavailable。 如果我继续将end date更改为第二天或更高。我得到了适当的回应。

我想利用这个API来寻找我希望扩展current meeting的房间。 示例 我目前正在进行另外30分钟的会议。我想将会议延长一段时间

(time would be passed via the parameter). 

我想留意房间和参与者的可用性。

更新

我更改了参数

"activityDomain":"work"

 "activityDomain":"unrestricted"

我检查了Organizer's calendar当天(附上截图)。仅为当天enter image description here

配置了一个会议

我正在努力为他提供服务。检查下面的JSON请求

{  
       "attendees":[  
          {  
             "emailAddress":{  
                "address":"aparna@meetingassistant.onmicrosoft.com",
                "name":"Aparna Banerjee"
             },
             "type":"Required"
          },
          {  
             "emailAddress":{  
                "address":"pallavi01@meetingassistant.onmicrosoft.com",
                "name":"Pallavi Chowdhery"
             },
             "type":"Required"
          }
       ],
       "timeConstraint":{  
          "timeslots":[  
             {  
                "start":{  
                   "dateTime":"2017-10-12T16:32:00",
                   "timeZone":"India Standard Time"
                },
                "end":{  
                   "dateTime":"2017-10-12T17:06:00",
                   "timeZone":"India Standard Time"
                }
             }
          ],
          "activityDomain":"unrestricted"
       },
       "locationConstraint":{  
          "isRequired":true,
          "suggestLocation":false,
          "locations":[  
             {  
                "displayName":"Room 101",
                "locationEmailAddress":"Meetingroom101@meetingassistant.onmicrosoft.com",
                "resolveAvailability":"true"
             },
             {  
                "displayName":"Room 303",
                "locationEmailAddress":"meetingroom303@meetingassistant.onmicrosoft.com",
                "resolveAvailability":"true"
             },
             {  
                "displayName":"Room 402",
                "locationEmailAddress":"meetingroom402@meetingassistant.onmicrosoft.com",
                "resolveAvailability":"true"
             },
             {  
                "displayName":"Room 007",
                "locationEmailAddress":"meetingroom007@meetingassistant.onmicrosoft.com",
                "resolveAvailability":"true"
             }
          ]
       },
       "meetingDuration":"PT30M",
       "returnSuggestionReasons":"true",
       "minimumAttendeePercentage":"100"
    }

我得到的response

{
   "@odata.context":"https://graph.microsoft.com/v1.0/$metadata#microsoft.graph.meetingTimeSuggestionsResult",
   "emptySuggestionsReason":"OrganizerUnavailable",
   "meetingTimeSuggestions":[

   ]
}

我想知道为什么它在获取suggestions时会出现问题?如果Organizer当天没有任何会议。

0 个答案:

没有答案