Search for specific address in torecipients EWS RRS feed

  • Question

  • I am using EWS API 1.1 and would like to search a folder for messages sent to a specific email address.  I can search easily using the following:

    Dimfindresults AsFindItemsResults(OfItem) = myservice.FindItems(WellKnownFolderName.SentItems,NewSearchFilter.ContainsSubstring(itemschema.displayto, strEmailAddress), myiv)

    The problem is that the email address is not always the displayto string.  I tried to replace the itemschema.displayto with emailmessageschema.torecipients, but I get the error "The Property ToRecipients can't be used in FindItem requests". 

    Can someone please point me to a solution to this problem?


    Tuesday, February 7, 2012 2:02 PM


All replies