Skip to main content

Notifications

Dynamics 365 general forum

Is there a tool or any online application for converting sql queries to fetch xml queries?

Posted on by Microsoft Employee

Hi All,

We are migrating from 2013 onpremise to d365 online  dynamics CRM.I have all the reports in 2013 but for D365 for reporting we use fetch xml queries.I have sql queries for all the reports but for using reports in d365 those reports wont be supported and needs to be modified according to fetch xml queries.I want to know whether there is any tool available online for converting the sql quries to fetch xml queries or do i need to write fetch xml queries manually for all the reports.I chceked with sql2fetchxml.com but it gives error for issues like joins.Kindly let me know if anyone had come across any tool for this.


Thanks in advance

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Is there a tool or any online application for converting sql queries to fetch xml queries?

    thanks Matt.I am trying with query builder in xrm toolbox

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 21,009 Super User 2024 Season 2 on at
    RE: Is there a tool or any online application for converting sql queries to fetch xml queries?

    Hi Priti01,

    Some SQL queries cannot be converted to equivalent FetchXML queries. This article presents a list of current FetchXML limitations.

  • Suggested answer
    Matt Collins-Jones Profile Picture
    Matt Collins-Jones 230 User Group Leader on at
    RE: Is there a tool or any online application for converting sql queries to fetch xml queries?

    Hi Priti

    I do not know of any tools to be able to do this automatically. I have previously had to re-write all the queries manually, but the FetchXML builder can help with creating the queries and building outer joins, not possible through advanced finds alone. There is an element of restriction with FetchXML compared to SQL, so it might be that you cannot recreate the report queries exactly.  There are ways around this like the data export service to replicate data in an azure hosted SQL db and doing SQL reporting on that server instead of D365, but it depends on the reports, how critical they are and if the expense of this method would be justifiable. 

    Thanks

    Matt

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

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