No Categories with GraphClient

Hello,

i’ve got a problem with the graphClient. The mail categories are always null.

I’m doing something wrong?

using IGraphClient client = GraphClient.GetClient(tokenProvider, accessParams.TenantId);

client.Resource = ResourceType.Users;
client.ResourceId = accessParams.UserId;

var inboxMessages = client.ListMessages(folder.ItemId);

foreach (var message in inboxMessages)
{
MapiMessage msg = client.FetchMessage(message.ItemId);
if (msg.Categories != null)
{
ret += msg.SenderName + “: " + msg.Subject + " Cat: " + string.Join(”,", msg.Categories) + “
”;
}
else
{
ret += msg.SenderName + ": " + msg.Subject + “
”;
}
}

Greetings from Cologne!

Hello @bgast,

Welcome to our support forum!

You have done everything right in code, it’s an omission on our side.
We have opened the following new ticket in our internal issue tracking system and will deliver it fix.

Issue ID: EMAILNET-41097

Thank you.