Microsoft Graph API Get Schedule taking time to reflect latest data from Outlook calendar

Rohan Nikam 26 Reputation points
2022-06-14T07:19:17.05+00:00

I am using Microsoft Graph API endpoints /me/events to create events in Outlook calendar of attendees and /me/calendar/getSchedule endpoint to get free/busy schedule. First I am creating a event with this endpoint /me/events, event gets created and is visible in Outlook calendar of Organizer and Attendees immediately but when I am calling endpoint /me/calendar/getSchedule to get free/busy schedule, that event is not returned by /me/calendar/getSchedule endpoint. After 10 to 20 minutes when again /me/calendar/getSchedule endpoint is called then the event is returned. I have checked this on Microsoft Graph Explorer.

From admin_email_id with this endpoint /me/events, first a event is created from 2022-06-14T18:00:00 to 2022-06-14T19:00:00 and added in Outlook Calendars of testing_email_id and testing_email_id_1 and then the following call is made to /me/calendar/getSchedule endpoint.

I have also posted a question at Stackoverflow
https://stackoverflow.com/questions/72541972/microsoft-graph-api-get-schedule-taking-time-to-reflect-latest-data-from-outlook

Sample API POST request

https://graph.microsoft.com/v1.0/me/calendar/getSchedule

{  
    "schedules": [  
        "testing_email_id"  
    ],  
    "startTime": {  
        "dateTime": "2022-06-14T09:00:00",  
        "timeZone": "India Standard Time"  
    },  
    "endTime": {  
        "dateTime": "2022-06-14T20:00:00",  
        "timeZone": "India Standard Time"  
    },  
    "availabilityViewInterval": "60"  
}    

this API call does not show the event created from 2022-06-14T18:00:00 to 2022-06-14T19:00:00, only when the call is made to the endpoint /me/calendar/getSchedule after 10 to 20 minutes then this event 2022-06-14T18:00:00 to 2022-06-14T19:00:00 is returned. Is there any way to minimize this delay so that just after adding the event in Outlook Calendar it is visible immediately with /me/calendar/getSchedule endpoint? Is the delay in returning the created event because I am using a Microsoft 365 trial account?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,049 questions
{count} vote

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.