By default Microsoft Dynamics CRM 2011 allows 10000 records to be
exported from CRM in an Excel spread sheet.
We can change this maximum row limit by doing one of the following.
Unsupported
by Microsoft
As a principal, In CRM world any direct interaction with the
database except for reporting using Filtered views is unsupported by Microsoft.
I will classify this change
as low-risk unsupported change.
- Open SQL Management Studio on your database server
- Run a new query on <OrganizationName>_MSCRM
- Select MaxRecordsForExportToExcel From OrganizationBase where Name = ‘OrganizationName’
- This query will show you the value of MaxRecordsForExportToExcel in the organization database. It will be 10000 (by default) if it has not been updated
- Run update query to update this value to 65000 (if you want to export 65000 records in an excel spread sheet).
- Update OrganizationBase Set MaxRecordsForExportToExcel=65000 where Name = ‘OrganizationName’
If you now run the select statement again, you will see the value
as 65000. This should now allow you to export 65,000 records out of CRM in
excel spread sheet.
Supported
by Microsoft
This modification can also be done in a supported manner by using
CRM SDK. You will need developer’s help to do that. Use the following code in your utility
service.Update(organizationObject);
Registry Settings on CRM Server
Try now if it
allows you to export 65000 records, if not then you will need to add/modify
registry settings on CRM Server.
Start -> Run -> type regedit
and then press enter
Navigate: HKEY_LOCAL_MACHINE ->
SOFTWARE -> Microsoft -> MSCRM
Look for registry entry (DWORD) with
the title “maxrecordsforexporttoexcel” and modify the value to 65000.
If you are unable to find the
registry entry then create it as shown below.
From Edit Menu -> Click New ->
DWORD value and select it to be “Decimal” and specify value 65000.
Once you have modified/created this
registry entry, reset IIS by doing the following
Go to your CRM server, Start ->
Run -> type iisreset and press enter
Now you should be able to export 65000
records out of CRM in Excel.
If you are doing IIS reset on
Production environment then make sure you do it when users are not live
otherwise it will/may interrupt users from using CRM application.
No comments:
Post a Comment