Home Change outlook mailitem selection from c# outlook add-in in conversation view
Reply: 1

Change outlook mailitem selection from c# outlook add-in in conversation view

kban
1#
kban Published in 2014-10-01 11:25:32Z

I need to select a mailitem from my outlook add-in. I'm trying to use

Outlook._Explorer explorer = OutlookApp.ActiveExplorer();  
explorer.AddToSelection(item);

and it's ok, but only if "Show as conversations" flag is not checked. When it's checked, i'm getting an error "The method you are invoking is invalid for a conversation view." How can i select a mailitem, when "Show as conversations" flag is checked?

Eric Legault
2#
Eric Legault Reply to 2014-10-08 15:00:00Z

AFAIK, you can use AddToSelection when Conversations are enabled. However there are a number of other conditions outlined in the link below that could prevent it from working. Just make sure to call Explorer.IsItemSelectableInView(Item) before calling AddToSelection.

Explorer.AddToSelection Method (Outlook) http://msdn.microsoft.com/en-us/library/office/ff868732(v=office.15).aspx

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.342694 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO