How To: Creating Custom Report with Microsoft Dynamics CRM 2011 BIDS Fetch Extension

Today’s guest blogger is CRM MVP Frank Lee  from Workopia who provides us his insights about another way to create custom reports.

The Microsoft Dynamics CRM 2011 architecture enables report developers to create and customize reports even more than before. Prior to this release, reporting was usually created by using the report wizard within the CRM application. It was not as customizable or flexible as the new version. Here are the steps to create a custom report with Microsoft Dynamics CRM 2011 via the Microsoft SQL Server Business Intelligence Development Studio (BIDS) Fetch Extension:


  • Microsoft SQL Server 2008 or 2008 R2 Business Intelligence Development Studio (BIDS) installed
  • Microsoft Dynamics CRM 2011 BIDS Fetch Extension installed
  • Microsoft Dynamics CRM 2011 Online account

Part A – Setup a Microsoft CRM 2011 FetchXML Custom Report development environment

  1. Setup a Windows 7 32 bit or 64 bit PC ~ Other supported OS: Vista, Windows Server 2008 or Windows Server 2008 R2
  2. Install the Microsoft SQL Server 2008 or 2008 R2 Business Intelligence Development Studio (BIDS) feature


  1. Install the Microsoft Dynamics CRM 2011 Fetch Extension and run the “CRM2011-BIDSExtensions-ENU-i386.exe” installation program.


Part B – Create a Microsoft CRM 2011 FetchXML Report

  1. To start creating the report, you need to open the Microsoft SQL Server Business Intelligence Development Studio (BIDS):


  1. Create a new project and select the Report Server Project from templates; be sure to include a name and the location to store the project:


  1. You should have a Reports folder within your project; right click and Add New Report, this should start the Report Wizard:


  1. Click next until you see the page with the Data Source options. You need to select a new datasource (do not save or make as a shared) – this is important because you want the datasource information local within the file you upload to CRM. Referring to a saved data source will not work because the information will not be available when uploaded to the CRM server
  1. Select Microsoft Dynamics CRM Fetch for type and fill in the connection string in the following format: ServerURL;OrganizationName;HomeRealmURL
    1. only ServerURL is required, this would be the url to your CRM server like:
    1. The optional OrganizationName should also be included if you have multiple CRM environments, it will use the first organization otherwise – you will find this value within the Developer Resources area in the CRM client located within Settings > Customizations (refer to the red mark).


    1. The HomeRealmURL, also optional, it will be a registry value from HKLM\SOFTWARE\Microsoft\MSCRMBidsExtensions\HomeRealmUrl
  1. Next you need to enter in the credentials for you connection, it should be your Windows LiveID (WLID) – usually the email that you use to sign-in the CRM Online along with its password. Click Credentials to fill in this information and afterwards you can click next
  1. If successful, you will move onto the next page where it will ask for a FetchXML type query. Since this is a report, a query is important to obtain the information you want in the report
    1. One way to obtain a FetchXML query is to start by using the CRM Online web client and creating an Advanced Find query.


    1. A query usually involves asking for the columns of data you want to retrieve also, make sure you click Edit Columns so that you can select the data you want to see in your report
    1. Lastly, click Download Fetch XML and you should be able to view the xml file with the supplied query. I usually just open it with a browser and then view Page Source to copy the text:


  1. Up to this step, most of the work has been done and the remaining steps of the wizard will guide you through and offer ways to customize the layout and appearance of your report
  1. Once you have finished using the wizard, I suggest previewing (Preview tab) the report before uploading – this will connect directly to CRM and give you the actual report. One advantage about creating a report this way is you can edit the report within Visual Studio (Design tab) and modify or add items to the report to make it more presentable:


  1. The report should be an .RDL file that gets created; this file will need to be uploaded into the CRM environment
    1. Open the web client and navigate to Reports, normally found in the Workplace section. Once there, create a new report by clicking New at the top left
    1. Select Existing File as the Report Type, the File Location should now be enabled:


    1. Browse to that .RDL file that was created by the project and upload it
  1. You have now completed your report and uploaded it to the CRM system, you can click Save and test it out by opening the report


Frank Lee

Comments (13)

  1. PQ says:


    The report is dynamic?

  2. Ritou says:


    Sorry it looks like it does not work on the beta version.

    My url is something like https://<myserver&gt;;<myorganisation>

    and I have a credential error.

    Can we test this on a beta version ?


  3. jake says:

    HEllo, as Ritou stated and questioned "it looks like it does not work on the beta version.

    Can we test this on a beta version?"


  4. Frank says:

    The report is dynamics – by refershing it – it will retrieve the latest data.  You can then save a copy of the report as a "snap shot".  The BIDS is new for CRM 2011 and should work for CRM 2011 Beta – On Premise or Online.

  5. donsingh2k says:

    Do you have an example where we can perform more advanced fetch's e.g: display all the opportunities for an account and its child accounts and group opportunuties records by there corresponding account.

    Can this be done?

  6. Jorge says:

    I had the credentials error and I solved it by following the very first answer from this thread ->…/1e4b63bb-d693-4679-b2f1-7f2a6f2216c8.

    And had also an erro installing the FetchXML extension which I got solved by following the second answer on this other thread.

    After that this worked like a charm 🙂

  7. Paul says:

    How do we filter it to run only on the current record using fetch?

  8. Vanessa says:

    Is it possible to make some math calculous to set results on the report

  9. James says:

    Think this might help, its a pinpoint component… Completely free, it automates credit scoring and alot more.

    I recommend you try it, could help. Credit check integration CRM 2011…/credit-check-component-for-microsoft-office-outlook-crm-12884934792

    Hope it helps

  10. Sid says:

    Hi,i don't know any thing in's so boring & time wasting.

  11. siddhu says:

    It does not work in 2011 version.

  12. Asim says:

    Great it works with me … but I was working with MS SQL Server 2012 so instead of Business Intelligence Studio I have to use SQL server data tool

Skip to main content