Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shoter opened this issue Feb 26, 2024 · 1 comment

Comments

@shoter
Copy link

shoter commented Feb 26, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants