May 15 2022 02:47 PM
Hi,
I am unable to get a list of all the mailfolder children in a mailfolder.
I use MailFolders[FolderId].ChildFolders.
var queryOptions = new List<QueryOption>()
{
new QueryOption("includeHiddenFolders", "true")
};
var TestOCFolders = await graphClient.Users[destination.Email].MailFolders[FolderId].ChildFolders.Request().GetAsync();
var OCFolders = await graphClient.Users[destination.Email].MailFolders[FolderId].ChildFolders.Request(queryOptions).Top(250).GetAsync();
I used application permissions and I have applied all required permission.
Those folders that were existing and created by the user were not able to be seen and only the folders that were created by the application can be seen.
Can anyone help me understand the issue?