Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

SSRS Report Sql query - Convert to Fetch XML

(0) ShareShare
ReportReport
Posted on by 142

Hi All,

I have a query in SQL format as below in Dynamic on-premise SSRS and I need to convert it into D365 online SSRS using Fetch XML

SELECT TOP (10) [f-code], Name, [Bus. Phone], Chapter, Company, Trading, Membership, Grp
FROM [MB-MBR]
WHERE ([f-code] = @CRM_FilteredAccount)

I need to convert this into Fetch XML. But I can not find this entity. Please, help me to convert this into fetch XML.

  • Suggested answer
    aindike Profile Picture
    142 on at
    RE: SSRS Report Sql query - Convert to Fetch XML

    This query pointing to the old version of CRM. That is why the query is different. Thanks all who reply to this post.

  • Verified answer
    Vipin J Profile Picture
    1,583 on at
    RE: SSRS Report Sql query - Convert to Fetch XML

    You can refer this page to convert your SQL to FetchXML

    http://www.sql2fetchxml.com/

    Its better to first locate this entity in your advanced Find and there we have an option to download FetchXML also.

    Here are some more useful tips when dealing with SSRS Reports

    https://vjcity.blogspot.com/2019/05/dynamic-crm-ssrs-report-best.html

    https://vjcity.blogspot.com/2019/08/guidelines-to-write-good-javascript.html

  • Verified answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: SSRS Report Sql query - Convert to Fetch XML

    Hi,

    Where did you get this query from? This doesn't look like correct or complete.

    Nonetheless, you can refer the below blog on converting query-

    https://arunpotti.wordpress.com/2015/07/12/convert-sql-query-to-microsoft-dynamics-crm-fetchxml/

    Hope this helps.

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... 292,850 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,723 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans