Graph API GetSchedule no longer returns the correct data

YH-5466 41 Reputation points
2023-02-28T16:50:38.0466667+00:00

Hi,

In my front end application I am trying to receive rooms events in a period of time using above endpoint (rooms calendars are shared to admin user).

My problems:

I create an event using create endpoint with a start date and an end date and a location (room).

I update the room event using update endpoint with a new end date.

The event is updated in the room calendar and the event has the same end date in my calendar.

If I call getSchedule endpoint with the email of this room in "schedules" parameter, this is what I got in Graph Explorer:

"scheduleItems" with the original end date and not the new end date

If I call calendarview endpoint with room email, I get the new end date for my event.

getSchedule endpoint no longer returns the correct data.

Have there been any changes?

Yohann

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Bhanu Kiran 3,616 Reputation points
    2023-04-11T23:48:13.2066667+00:00

    Hello @YH-5466

    If this is still an issue, I would recommend you raise a support case with Microsoft Graph, a Support Engineer will be able to assist you better. You can raise support ticket from
    http://aad.portal.azure.com/ or https://admin.microsoft.com/#/support/requests.

    Hope this helps.

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


  2. YH-5466 41 Reputation points
    2023-04-12T07:00:18.47+00:00

    Hi @Bhanu Kiran Thank you for your help. I have already opened more than a month ago two tickets : one with Microsoft Graph and one with Microsoft Exchange. Today, I haven't no answer to my problem. I have the same problem when I use Outlook WebMail. If I create an new event with my resource, this resource is displayed as busy and the availability is not updated. I think that the availaybility informations are updated after more then 12 hours for the GetSchedule API. Yohann

    0 comments No comments

  3. Cedric Vinci 0 Reputation points
    2023-04-14T09:03:27.76+00:00

    I just noticed that my endpoint getSchedule is only updated after event creation but not if I update an event resource and that's my problem, because I want sometimes to modify the end of an event resource but it don't make the user free for the freed timeslot.

    For exemple:

    • I have an user (USER1).
    • I create a event (EVENT1) from 1 PM to 2PM
    • I check the getSchedule for this user between 1:30 PM to 2PM
      • Response: USER1 is busy (information from availabilityView property in getSchedule Response)
    • Update the event (EVENT1) to end at 1:30 PM
    • Recheck the getSchedule for this user between 1:30 PM to 2PM
    • Response: USER1 is still busy and the response inform us that USER1 is busy from 1PM to 2PM (based on the previous version of EVENT1 even EVENT1 has been modified before this call)
      • But if i create a new event from 2PM to 3PM, and I recheck the availability between 1:30 PM to 2PM:
      • Response: USER1 is now FREE for this time slot [1:30 PM to 2PM]

    [I HAVE FINALLY FOUND THE SOLUTION] I had this problem by using this endpoint to update an event :

    PATCH /users/{id | userPrincipalName}/events/{id}
    

    But with this one below, getSchedule endpoint is correctly updated after the update of an event resource

    PATCH /users/{id | userPrincipalName}/calendars/{id}/events/{id}
    

    Conclusion

    I think it's important to specify the calendar in which we make modification, the user only isn't enough undefinedundefinedundefinedundefinedundefinedCedric

    0 comments No comments

  4. YH-5466 41 Reputation points
    2023-04-14T10:12:20.4966667+00:00

    Hi @Cedric Vinci I try this endpoint to update the event of my resource : PATCH /users/{id | userPrincipalName}/calendars/{id}/events/{id} but I have the same behavior. In my case, I don't update the event of the users's calendar who has created the event but I update the event of my resource's calendar (room).


  5. YH-5466 41 Reputation points
    2023-11-15T10:01:19.7766667+00:00

    Hi,

    I receive a response from Microsoft :

    "Our product team has provided a short-term mitigation of the issue.

    This fix ensures that an organizer updating a meeting in a way that would affect free-busy (time, location, subject, or sensitivity change) will now cause free-busy to be republished in near-real time again.

    Therefore, currently to get a the correct free/busy schedule kindly make an update to the meeting and check if that’s helpful."

    Now, when I create an event in my calendar with a resource and that I update the end date of this event in the room calendar with the current hour, the resource is available immediately when I call "getSchedule API"

    Yohann

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.