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!