Reputation: 5971
In Outlook you can assign a category to an appointment. There are categories like Personell or Business etc. I need to assign a category to an appointment, via Exchange Managed API. How do I do that?
Upvotes: 3
Views: 4967
Reputation: 990
I tried applying Krause's answer to messages (not appointments) and found out I also needed to update the message:
message.Update(ConflictResolutionMode.AlwaysOverwrite);
(or a different ConflictResolutionMode)
Just FYI for anyone else who stumbles here and wonders why a message (or presumably even an appointment) doesn't get updated after adding a category. :)
Upvotes: 2
Reputation: 5422
You can do that by adding entries to the Categories collection:
appointment.Categories.Add("Business");
The colors are configured via the Master Category list. See my article Working with the Master Category List–EWS edition.
Upvotes: 8