MS Graph create event not work properly with getSchedule

Weslley Wang 1 Reputation point
2020-10-09T18:21:17.793+00:00

sorry I'm new to MS Graph. I'm working on a app to extract meeting history data for past hour/day/week/month for my company. I'm working on a tool to create event. I use create event, after I create event, I use getSchedule with schedules as the same meeting room, but nothing found. I can see the meeting in outlook, but does not appear correct. e.g. for the same meeting room, in normal case, it will show the capacity (e.g. 100 people), for the meeting created from API, I cannot find that kind of information. here is code I used in create event:

"location": {
"displayName": "London-DaVinci"
}

here is the displayName, I also tested with email address and alias, none of them works. what could be go wrong?

Thanks Wes

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,156 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Deva-MSFT 2,256 Reputation points Microsoft Employee
    2020-10-21T12:15:37.203+00:00

    Ok, i tried the following and its working for me:

    • Create new meeting room
    • Call events Graph API call and made sure the above meeting room is part of that
      • The above will create a new event
      • Now make the getschedule API call for the above timestamp for the meeting room
      • The graph api call will return the freebusy info for the room

    Just like this:

    **Request**:  
    
        graph.microsoft.com/v1.0/me/calendar/getschedule (add the payload to  
        get the schedule for the meeting room)   
    
    **Response**:   
    
    "value": [ { "scheduleId":  
        "testroombox@contoso.onmicrosoft.com", "availabilityView":  
        "000111111111111111111111111110000"  
    

    (If the reply was helpful please don't forget to upvote or accept as answer, thank you)

    0 comments No comments