microsoftgraph / microsoftgraph/msgraph-sdk-dotnet

v5 doesn't know well-known folder names

Open
#1,727 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Request: enhancement
Dominant language
C#
Stars
789
Forks
264
Avg merge
15h 17m
Merged PRs (30d)
3

Description

Is your feature request related to a problem? Please describe.
In v4 you could write

var mails = await client.Me.MailFolders.SentItems.Request().GetAsync();

In v5 this becomes

var mails = await client.Me.MailFolders["SentItems"].GetAsync();

Unfortunately the list of well-known folder names or no longer part of the SDK and must be taken as string from the documentation.

Describe the solution you'd like
Would be great if the v5 SDK also has one of these:

var mails = await client.Me.MailFolders.SentItems.GetAsync();
// or
var mails = await client.Me.MailFolders[MailFolder.SentItems].GetAsync();

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the v5 mail-folder API represented by the client.Me.MailFolders["SentItems"] example and compare it with the v4 SentItems access pattern. Determine how well-known folder names should be exposed, then confirm that the chosen API supports the requested usage and covers the documented well-known names.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.