MS Graph create event not work properly with getSchedule

431 views Asked by At

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

1

There are 1 answers

0
Dev On

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

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

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":
    "[email protected]", "availabilityView":
    "000111111111111111111111111110000"