FindMeetingTimes API is not returning time slots for more than 1 day

Gayatri Budha 1 Reputation point
2022-05-06T11:08:55.317+00:00

Hello Everyone, I've been trying to fetch available time slots for meeting using findMeetingTimes api(https://graph.microsoft.com/v1.0/me//findMeetingTimes). The api is working fine but the problem is it is only returning time slots for one day. If I give the start date : 2022-05-07T09:00:00 and end date : 2022-06-07T09:00:00 then it returns available time slots for the date 2022-05-07 only.

Can anyone please explain me why is this happening? I tried different ways but couldn't find a cause. How does this api work?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,824 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. HarmeetSingh7172 4,811 Reputation points
    2022-05-06T13:43:18.4+00:00

    Hi @Gayatri Budha

    Based on my research, FindMeetingTimes graph API works in this way only. It will not return all the time slots between a given range. You can always check suggestionReason property in API response to know the reason for suggesting the meeting time.

    199648-ss03.png

    As you can see in below screenshots, I am getting multiple available time slots for two dates and the reason for the available time slots is- 'because it is one of the nearest times when all attendees are available'.
    199721-ss01.png

    Please check the date and time for another time slot-

    199668-ss02.png

    However, if you want to know free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period, you can use getSchedule graph API.

    Hope this helps.
    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have further questions about this answer, please click "Comment".