Skip to main content

Notifications

Power Platform Community / Forums / Microsoft Dataverse / SQl query to Fetch XML...
Microsoft Dataverse
Unanswered

SQl query to Fetch XML query

Posted on by
Hi,

I want to convert SQL query to Datavese fetch xml query.


Select top 100 discussion, createdon, mostrecentdate

from mspwrplt_cmty_discussionthread

where record='548sc5e'

ORDER BY 

CASE 

    WHEN createdon < mostrecentdateTHEN mostrecentdate

    ELSE  createdon

END DESC;

 
 
Categories:
  • Suggested answer
    Shashank Bhide Profile Picture
    Shashank Bhide 758 on at
    SQl query to Fetch XML query
    FetchXML doesn't have built in CASE....WHEN...THEN, otherwise you can use the tools suggested by other community members in the post.
  • Suggested answer
    ankit_singhal Profile Picture
    ankit_singhal 86 on at
    SQl query to Fetch XML query
    You can use CRM tool box or its simple you can go in advance find and select you entity and applied same filter there and download fetch xml file 
  • Suggested answer
    MichaelFP Profile Picture
    MichaelFP 1,063 on at
    SQl query to Fetch XML query
    to convert

Helpful resources

Quick Links

Welcome to the Power Platform…

We are thrilled to unveil the newly-launched Power Platform Communities!…

Community Update Sept 16…

Power Platform Community Update…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 140,745

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,355

Leaderboard

Featured topics