Is it possible to filter mails in outlook using ConversationID?
This is what I have tried (filtering on subject) :
Microsoft.Office.Interop.Outlook.Application oApp = new Microsoft.Office.Interop.Outlook.Application();
Microsoft.Office.Interop.Outlook.MAPIFolder oInbox = Globals.ThisAddIn.Application.Session.Folders["abc@gmail.com"].Folders["Inbox"];
string sFolderPath = oInbox.FolderPath;
string sScope = "SCOPE ('deep traversal of \"" + sFolderPath + "\"')";
string sFilter = "\"urn:schemas:mailheader:subject\" LIKE '%search%'";
oApp.AdvancedSearchComplete += new ApplicationEvents_11_AdvancedSearchCompleteEventHandler(oApp_AdvancedSearchComplete);
Microsoft.Office.Interop.Outlook.Search oSearch = oApp.AdvancedSearch(sScope, sFilter, false, "Search results" + DateTime.Now.ToString());
Microsoft.Office.Interop.Outlook.MAPIFolder oSearchFolder = oSearch.Save("Search results" + DateTime.Now.ToString());
I have already checked Display email in Outlook by using ConversationID. It says to search using entryId but I need conversationId.
Any help is appreciated.
Thanks in advance.