Can't get all busy times of meeting rooms using the Office365 Calendar API

前端 未结 1 2014
春和景丽
春和景丽 2021-01-26 05:22

Trying to fetch calendar events in order to allow a user to pick a time for a meeting where the attendees and the meeting room are available.

We\'re using Outlook Calend

相关标签:
1条回答
  • 2021-01-26 06:11

    Ok, so to clarify, and this is the key point I missed at first: the problem that you're having is that the appointment booked by the authenticated user using the conference room as a location does NOT cause an entry to show up in the FindMeetingTimes response. (At first I thought you were saying it was showing as Free!)

    This is correct behavior. FindMeetingTimes is not meant to return an exhaustive list of free/busy results. Rather, it's to find a potential meeting time! The list is based on the availability of the organizer (the authenticated user) and the specified attendees. Because both the organizer AND the room are busy (because the organizer has an appointment already booked in the room), the time slot isn't even presented. When you make the request as another user, they are the organizer, and since they are free at that time, the slot is presented as a possible time.

    So I may misunderstand what you're trying to do, but this should work for you. As long as you're only presenting the times returned as possibilities, there isn't a potential for conflict.

    0 讨论(0)
提交回复
热议问题