Using Microsoft Graph SDK, I realised that when I get events from a calendar events collection, the extended properties are in the response:
graphClient.Me.Calendar.Events
.Request()
.Expand("SingleValueExtendedProperties($filter=id eq 'String {00020329-0000-0000-C000-000000000046} Name MyExtendedProperty')")
.Select("SingleValueExtendedProperties")
.GetAsync()
But when I get them from a calendar view collection, the extended properties are omitted:
graphClient.Me.Calendar.CalendarView
.Request(new[]
{
new QueryOption("StartDateTime", DateTime.UtcNow.AddMonths(-3).ToString("yyyy-MM-dd")),
new QueryOption("EndDateTime", DateTime.UtcNow.AddMonths(3).ToString("yyyy-MM-dd"))
})
.Expand("SingleValueExtendedProperties($filter=id eq 'String {00020329-0000-0000-C000-000000000046} Name MyExtendedProperty')")
.Select("SingleValueExtendedProperties")
.GetAsync()
Does anyone know if this is a by-design restriction or if there's a way to expand the extended properties in the calendar view?