CRM 4.0 Bulk Data Export Tool

There is no facility to Bulk Export the data from Microsoft Dynamics CRM 4.0. This sample tool  allows users to connect to OnPremise or Online Microsoft CRM 4.0 organization and export records of CRM entities in form of CSV files. The complete code for the tool is provided here for the advanced developers who want to develop solutions currently beyond the scope of this tool. The sample code included uses standard MSCRM SDK calls to achieve this functionality.

The Bulk Data Export Tool can be downloaded from Follow the instructions in Readme.Txt for installations.

Once you have installed the tool, launch CrmDataExport.exe, select CRM configuration and specify the credentials:


If you are connecting to OnPremise CRM Organization, make sure to open Internet Explorer, connect to CRM server and Save Password. This is necessary as this tool uses stored credentials to connect to the CRM server in OnPremise configuration.

Once you are connected successfully, you can select the entities for which you want to export the records, specify output directory, data and field delimiters, and duration. Note that All Records option is not available for Online configuration. Click Export button to export the records.


The tool creates CSV for each selected entities in the directory selected. You can use this tool for periodic backup of your data.


Arun Kumar

Comments (12)

  1. Reference to a great post on the CRM blog which describes a sample tool for bulk data export from CRM

  2. Greg kats says:

    It Crashes when I try to export Leads

  3. Arun Kumar says:

    Please post the complete trace and I will be able to help you.




    # re: CRM 4.0 Bulk Data Export Tool

    It Crashes when I try to export Leads

  4. arkuma says:


     Please post the stack trace and I will be able to look into it.




    # re: CRM 4.0 Bulk Data Export Tool

    It Crashes when I try to export Leads

  5. arkuma says:

    If you get a crash while exporting records, please look at the following:

    I have recompiled the tool with CRM4.0 RTM dlls. If you are installing the tool on the machine that has MSCRM installed or DM/outlook client installed, use file on the release page at This file should be used for MSCRM VPC.

  6. John says:

    I downloaded the Bulk Export Tool and I launched the tool and I am trying to connect to my On Premise CRM to export the data for CRM 4.0.  When I launch CRM in a browser and save the user name and password, and then launch the tool and try to log in there is a URL:

    Do I leave that URL in?  Or do I change it?  I am not able to connect.

    Can anyone help me?

  7. Nagarajan says:

    this export tool is a window application. i want this same functionality in web application. please give Suggestion..

  8. Katie says:

    Does this tool only export attributes that are "Searchable"? I have found that the csv file does not list all of the attributes defined by the entity.

  9. On Codeplex there is a tool for Microsoft Dynamics CRM On Premise  that allows you to modify records

  10. Jeff Cook says:

    I’m not getting the All Records as an option.  Has this changed?

  11. Steven says:

    Is there a similar tools for 2011?

Skip to main content