Breaking news from around the world
Get the Bing + MSN extension
Now Available in Community - MBAS 2019 Presentation Videos
Catch the most popular sessions on demand and learn how Dynamics 365, Power BI, Power Apps, Power Automate, and Excel are powering major transformations around the globe. | View Gallery
2019 release wave 2 Discover the latest updates and new features to Dynamics 365 planned through March 2020
Release overview guides and videos Release Plan | View virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming TechTalks
Dear All, I want to know that how can I convert the SQL query to the query builder in d365?
This query return the first record of each group. these groups are based on the prodId.
WITH summary AS (
ROW_NUMBER() OVER(PARTITION BY p.prodid
ORDER BY p.transDate DESC ) AS rk
FROM PRODPARMREPORTFINISHED p where p.JOBSTATUS = 0 )
FROM summary s
WHERE s.rk = 1
What exactly do you mean when saying "query builder in d365". Query* classes in D365 for Finance and Operations?
If so, the answer is that 'WITH' isn't supported. You'll have to refactor your query to something that can be implemented in D365FO.
Are you confused about ROW_NUMBER()?
I think you can try using a view with computed columns.
Please read Martin's blog.
Thank you and Martin
I 've achived to Create a computed column which shows row number per ProdId.
public static server str rowNumberPerGroup()
return 'ROW_NUMBER() OVER (PARTITION BY prodId ORDER BY transDate DESC )';
Business Applications communities