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

MailFolders returns different results than MailFolders["ROOT"].ChildFolders #2194

Closed
kosa-gyula-77 opened this issue Nov 2, 2023 · 3 comments

Comments

@kosa-gyula-77
Copy link

Describe the bug
MailFolders returns different results than MailFolders["ROOT"].ChildFolders.

To Reproduce
Steps to reproduce the behavior:

  1. Case MailFolders
var folders = await graphClient
    .Users[MailboxConfiguration.EmailAddress]
    .MailFolders
    .GetAsync(requestConfig =>
    {
        requestConfig.Headers.Add(Constants.Headers.PreferHeaderName, Constants.Headers.PreferHeaderImmutableIdValue);
        requestConfig.QueryParameters.Select = new[] { "id", "displayName" };
        requestConfig.QueryParameters.IncludeHiddenFolders = "true";
        requestConfig.QueryParameters.Top = 100;
    });
  1. Case MailFolders["ROOT"].ChildFolders
var folders = await graphClient
    .Users[MailboxConfiguration.EmailAddress]
    .MailFolders["ROOT"].ChildFolders
    .GetAsync(requestConfig =>
    {
        requestConfig.Headers.Add(Constants.Headers.PreferHeaderName, Constants.Headers.PreferHeaderImmutableIdValue);
        requestConfig.QueryParameters.Select = new[] { "id", "displayName" };
        requestConfig.QueryParameters.IncludeHiddenFolders = "true";
        requestConfig.QueryParameters.Top = 100;
    });

Expected behavior
They return the same collection of folders.

Client version
"Microsoft.Graph" Version="5.32.0".
Version 4.x might have the same issue.

@andrueastman
Copy link
Member

Thanks for raising this @kosa-gyula-77

As this question is about the behavior of the API returning different results based on the call, any chance you can post the question at the link below to get feedback from the API owners? As this repo is mainly intended for issues related to the SDK, we may not be best placed to answer. It would also be great if you could post back the link to the same so that anyone who has a similar question may also find it useful.

https://learn.microsoft.com/en-us/answers/tags/161/ms-graph

@kosa-gyula-77
Copy link
Author

Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

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