msgraph-sdk-dotnet icon indicating copy to clipboard operation
msgraph-sdk-dotnet copied to clipboard

[Client bug]: CalendarView for specific calendar does not have $expand functionality

Open shoter opened this issue 4 months ago • 1 comments

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

shoter avatar Feb 26 '24 12:02 shoter

Depends on resolution of https://github.com/microsoftgraph/msgraph-metadata/issues/577

andrueastman avatar Feb 27 '24 07:02 andrueastman