I was working on my Email to Case solution and testing with copied data from production on my development CRM installation and encounter a limitation using the Fetch, the resultset was only 5000 results only but I know that I have more than that count on the queue I was testing the application....
Well I decided to create the application as a Windows NT service that will be checking every 2 minutes and process 5000 emails every time, but that will take time to process when you receive 25,000 a day, also I want the process to be optimized, in the case that we want the process to run only a few times during the day.
Looking on the SDK code I can't find any where to mentioned that 5000 records have to be returned, so I look at the registry on my development server, and found the SDK section, look for anything related to the FetchXML and found the "turnOfFetchThrottling" as 0 (zero), changed to 1 and then continue testing after that change I got all the emails coming back and the fetch took longer to return all that information.
HKEY_LOCAL_MACHINE\Software\Microsoft\MSCRM\TurnOffFetchThrottling
To process all the emails I serialized and de-serialized the resultset and process everything.
Abe Saldana
Http://www.crmbuzz.net
This all is undocumented and unsupported. Therefore you should only try these kinds of modifications if you feel comfortable with this.
Everything here, though, is my personal opinion and is not read nor approved before being posted. No warranties or other guarantees will be offered as to the quality of the opinions or anything else offered here.