Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

Convert query to Dynamics 365 CRM

(0) ShareShare
ReportReport
Posted on by
can any one share me how to convert  below xml query to query Expression CRM 365
..
select top 10 d.nkf_date,  --d.nkf_nehrnotes,
c.nkf_nricfinno, c.contactid, c.fullname,
dc.nkf_institutionrefno,
(select top 1 m.nkf_esrfdate   
from filterednkf_medicalassessment m
where m.nkf_contactid = d.nkf_patientid and m.nkf_contacttype= '100000001' and m.nkf_esrfdate is not null) as esrddate
from filterednkf_dialysistreatementassessment d
left join filteredcontact c on c.contactid = d.nkf_patientid
left join filterednkf_dialysiscenter dc on dc.nkf_dialysiscenterid  = c.nkf_dcid
where convert(varchar(10), d.modifiedonutc, 126) = '2024-02-21' --and d.nkf_nehrnotes is not null
order by d.modifiedon desc
 
  • AdamTravers Profile Picture
    AdamTravers 25 on at
    Convert query to Dynamics 365 CRM
    That is a SQL and not XML. If you want to convert SQL to XML (Dynamics query) there is a tool to do this within the XrmToolbox called SQL 4 CDS
     
    (1) Within Xrm Toolbox open the SQL 4 CDS tool
    (2) Copy and paste your SQL in the query window

     
    (3) On the Toolbar click Convert -> Fetch XML

     
     
     

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,476 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans