Hi,
I would like to filter e-mails using FindItems and Normal Search(not using AQS) in Exchange 2013 and online.
The filtering should be based on To,Cc and Bcc fields.
Is it possible to search emails using FindItems for the above Search fields.
view2.PropertySet = new PropertySet(BasePropertySet.IdOnly, EmailMessageSchema.BccRecipients, EmailMessageSchema.ToRecipients, EmailMessageSchema.CcRecipients,
EmailMessageSchema.DisplayCc, EmailMessageSchema.DisplayTo);
foundItems = objConnect.service.FindItems( folder.Id, searchfilter, view1);
As per the above example, this might not be possible.
http://blogs.msdn.com/b/brijs/archive/2010/02/12/how-to-retrieve-email-address-from-the-from-and-to-field-of-mail-item-using-ews-managed-api.aspx
Filtering based on DisplayCc and DisplayTo also doesn't work since DisplayCc, DisplayTo doesn't store emailaddress instead they store the name.
Pleasse suggest a way to filter e-mails based on to,cc and bcc fields in Normal Search.
Regards,
Gagan
I would like to filter e-mails using FindItems and Normal Search(not using AQS) in Exchange 2013 and online.
The filtering should be based on To,Cc and Bcc fields.
Is it possible to search emails using FindItems for the above Search fields.
view2.PropertySet = new PropertySet(BasePropertySet.IdOnly, EmailMessageSchema.BccRecipients, EmailMessageSchema.ToRecipients, EmailMessageSchema.CcRecipients,
EmailMessageSchema.DisplayCc, EmailMessageSchema.DisplayTo);
foundItems = objConnect.service.FindItems( folder.Id, searchfilter, view1);
As per the above example, this might not be possible.
http://blogs.msdn.com/b/brijs/archive/2010/02/12/how-to-retrieve-email-address-from-the-from-and-to-field-of-mail-item-using-ews-managed-api.aspx
Filtering based on DisplayCc and DisplayTo also doesn't work since DisplayCc, DisplayTo doesn't store emailaddress instead they store the name.
Pleasse suggest a way to filter e-mails based on to,cc and bcc fields in Normal Search.
Regards,
Gagan
Gagan