Microsoft Graph - calendar: getSchedule not returning schedule for rooms

Susac, Karlo 41 Reputation points
2023-05-05T12:53:06.0333333+00:00

Hello, we have an issue where rooms booked to an events, are not appearing in the getSchedule API call.

We have made a couple of rooms:
User's image

We want to schedule these rooms in an calendar, and view the occupied state in an API call. For the creation of the events, we use:
https://learn.microsoft.com/en-us/graph/api/calendar-post-events?view=graph-rest-1.0&tabs=http

/users/{id | userPrincipalName}/calendar/events (application permissions)

So we have an organizer and we want to book a room for an event.
User's image

We assign the room as the (resource) attendee and now we wish to check the schedule of the room. For that we use:
https://learn.microsoft.com/en-us/graph/api/calendar-getschedule?view=graph-rest-1.0&tabs=http

/users/{id|userPrincipalName}/calendar/getSchedule (application permissions)

When making a getSchedule call, we use organizer as the query param (for the user_id or upn):
User's image

The issue is, we don't see a newly created event for the room. Sometimes it will apper but most of the times, not.

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

1 answer

Sort by: Most helpful
  1. TH-4749-MSFT 3,290 Reputation points
    2023-05-05T14:37:00.4466667+00:00

    Hi Susac, Karlo,

    Thanks for reaching out. If the issue is intermittent, I would suggest opening a support ticket as this issue may require further investigation.

    Thanks.

    0 comments No comments