0
votes

Here's my problem: I am using Microsoft Graph API v1.0 and would like to get the details of an instance of a recurring calendar event. All I got is the iCalUId of the instance.

I tried this call: https://graph.microsoft.com/v1.0/me/events?$filter=iCalUId eq 'the value of the iCalUId' This was also suggested in Microsoft graph API: finding event by iCalUid.

This works fine for single events. But it does not work for instances of recurring meetings: then the call returns an empty value. I just verified this in the Graph Explorer https://developer.microsoft.com/en-us/graph/graph-explorer

Am I doing something wrong (even though the iCalUId is unique to the instance)? Is there a different call I could use?

1

1 Answers

0
votes

This is happening because instances of recurring meetings don't actually exist on the server. When you use the /me/events endpoint, you are getting only single-instance and series masters events - it does not trigger the server to expand recurring events into individual instances.

To get server-side expansion, you have to use the /me/calendarview endpoint. This does require that you specify a date range though. For example, this works:

GET /me/calendarview?startDateTime=2020-01-31T00:00:00
&endDateTime=2020-02-29T00:00:00&
$filter=iCalUId eq '040000008200E00074C5B7101A82E00807E40204756DC3EEFFE5CC01000000000000000010000000FCE197631C1A2E4C89172A4115BEB7B5'