Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

Advanced Search API for Exchange not giving proper results

$
0
0

Hi ,

I have written a code to find out the number of mails recieved during a time period in a certain folder. I am using Application.AdvancedMethod search to get the output.

Below is the filter passed to the method along with folder path as scope which i am selecting using pickfolder method.

filter="urn:schemas:httpmail:datereceived> '" + startDate.Value.Date + "' AND urn:schemas:httpmail:datereceived < '" + endDate.Value.AddDays(1).Date+ "'";

I have folder structure from 2005 to 2015. For all the folders i have around 4000+ mails . The problem is that the method returns 0 results for all folders except 2014 and 2015. Even for 2014 and 2015 folders, it returns incorrect number. I am using Outlook 2013 with Exchange Server 2013. Please let me know if anyone knows the solution.<o:p></o:p>

Thanks.


Viewing all articles
Browse latest Browse all 7132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>