msgraph-sdk-dotnet
msgraph-sdk-dotnet copied to clipboard
[Client bug]: CalendarView for specific calendar does not have $expand functionality
Describe the bug Microsoft Graph API has an ability to use $expand funcitonality for your own calendarView:
var response = await graphClient.Me.CalendarView
.GetAsync(
r =>
{
r.QueryParameters.StartDateTime = s.ToString();
r.QueryParameters.EndDateTime = e.ToString();
r.QueryParameters.Expand = new[] { "..." };
});
However this is not going to work if we use
var response = await graphClient.Me.Calendar.CalendarView
.GetAsync(
r =>
{
r.QueryParameters.StartDateTime = s.ToString();
r.QueryParameters.EndDateTime = e.ToString();
r.QueryParameters.Expand = new[] { "..." }; // Expand is not recognized
});
Expected behavior
$expand should be accessible for both CalendarView
and Calendar.CalendarView
and similar routes like Calendar[id].CalendarView
Client version 5.42.0
Desktop (please complete the following information):
- OS: W11
Depends on resolution of https://github.com/microsoftgraph/msgraph-metadata/issues/577