Get category of an outlook email

hello all,
Is there any way through which we can GET the category of an outlook email?
Please suggest. TIA.


You can get the categories of an email by using the following function:


Note: If the mail doesn’t belong to any category, you’ll get the output as

EmptyPartition<string>(Count = 0)

Hope this helps,
Best Regards.

Thanks for responding. But I am getting ‘string[0] { }’ as the o/p when I use ‘GetCategories’ method. PFB screenshot. Any pointers please?
Please note that there are emails in the folder with caegories.