Hello!
The findMeetingTimes API endpoint in Microsoft Graph allows you to find available meeting times for a set of attendees and a room, but it currently does not have the capability to find recurring meeting slots based on a predefined pattern. It returns a collection of suggested meeting times based on the schedule of the attendees and the room.
That being said, you can still achieve this by breaking down your desired recurrent pattern into smaller time slots and calling the findMeetingTimes API endpoint multiple times. Here's an example of how you could do this:
- Define a recurring pattern for the meetings, such as every Monday and Wednesday at 10 am.
- Convert the pattern into a series of specific dates and times. For example, for the next month:
Monday, January 3 at 10 am Wednesday, January 5 at 10 am Monday, January 10 at 10 am Wednesday, January 12 at 10 am ... 3. For each date and time in the series, call the findMeetingTimes API endpoint with the desired attendees and room, and the specific date and time. This will give you available slots for each individual meeting.
- Collect the available slots from each API call into a single list.
- Filter the list of available slots to remove any duplicates and any slots that overlap with others.
By following these steps, you can find available slots for a recurrent meeting pattern, although it will take more processing time and more API calls.
Another approach, you can use the Microsoft Graph API endpoints to create an event series, an Event which recurs on a specific pattern, then use the findMeetingTimes API endpoint with that event, this way you are able to retrieve the best slots for all the recurrences of the Event.