Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

How to read the data of Microsoft CRM Pre-defined system report using Microsoft SDK in C# .Net

Posted on by 170

Hi,

I have created .net application and i am able to read data of Microsoft custom report using Microsoft SDK because it contains Fetch XML.

Same using  Microsoft SDK , i am not able to read Microsoft CRM Pre-defined System reports data because it is SQL based.

Any idea, how can i read the data of system reports using Microsoft SDK or there is any other way to read such reports data?

Thanks in advance!

*This post is locked for comments

  • MSCRM learner Profile Picture
    MSCRM learner 170 on at
    RE: How to read the data of Microsoft CRM Pre-defined system report using Microsoft SDK in C# .Net

    Thanks!

    But in system report, i am getting the SQL in the dataset and MSCRM doesn't support SQL directly. So, how can we convert that SQL into Fetch XML.

  • Suggested answer
    Shidin Haridas Profile Picture
    Shidin Haridas 3,497 on at
    RE: How to read the data of Microsoft CRM Pre-defined system report using Microsoft SDK in C# .Net

    You are using the FetchXML from the report and recreating the report in your code, right?

    Similarly, for the system reports, you would need to 're-create' the data source in your code, as in:

    1. getting the data sets

    2. filtering and grouping through them

    3. presenting the final result set.

    Don't

    If my answer helps you, please mark it as verified.

  • MSCRM learner Profile Picture
    MSCRM learner 170 on at
    RE: How to read the data of Microsoft CRM Pre-defined system report using Microsoft SDK in C# .Net

    Correct.

  • Suggested answer
    Shidin Haridas Profile Picture
    Shidin Haridas 3,497 on at
    RE: How to read the data of Microsoft CRM Pre-defined system report using Microsoft SDK in C# .Net

    Bingo,

    So you are not reading the report actually.

    You are using the FetchXML from the report and recreating the report in your code, right?

    Similarly, for the system reports, you would need to 're-create' the data source in your code, as in:

    1. getting the data sets

    2. filtering and grouping through them

    3. presenting the final result set.

    If my answer helps you, please mark it as verified.

  • MSCRM learner Profile Picture
    MSCRM learner 170 on at
    RE: How to read the data of Microsoft CRM Pre-defined system report using Microsoft SDK in C# .Net

    I am reading fetchXML from downloaded custom reports and pass that fetchXML using Microsoft SDK and read the report data.

  • Suggested answer
    Shidin Haridas Profile Picture
    Shidin Haridas 3,497 on at
    RE: How to read the data of Microsoft CRM Pre-defined system report using Microsoft SDK in C# .Net

    When you say 'read custom FetchXML based report', do you mind explaining how you are achieving it?

    Previously (in the on-prem deployments), we could 'talk' to the reporting services and get the custom reports in our .NET applications.

    Did not matter what type of report it was.

    But, since you are on an online deployment model, no way to directly interact with the reporting services.

    So, how did you achieve rendering a fetchXml based report?! :)

  • Suggested answer
    Dynamics365 Rocker Profile Picture
    Dynamics365 Rocker 7,755 on at
    RE: How to read the data of Microsoft CRM Pre-defined system report using Microsoft SDK in C# .Net

    You have to create fetch xml as per OOB report data.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans