Personalized Community is here!
Quickly customize your community to find the content you seek.
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 1 virtual launch event
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
I want to fetch a result set with some data sorted by RecId.
But the records are in large number, so I have to specific a range in every request.
So I write my code like this:
query= new Query();
qbds = query.addDataSource(tableId);
qrun = new QueryRun(query);
But the result is confused. The range is right, but the result set is not sorted.
How to resolve it?
You're skipping an important step in debugging. You write code generating a query and then you look at results of the query, but you don't ever look at the query itself.
Let's try it. When we see that the query is wrong, we don't have to waste time executing it, because it clearly won't give the right result. And understand what's wrong is the first step to resolving a problem.
Either look at the qbds object in debugger, or use a little piece of code: info(qbds.toString()).
By the way, such a filter by RecId is a very strange thing. Are you sure it's the right thing to do?
I did the qbds.toString() and get the correct way to troubleshoot issue.
Thank you for your help.
Business Applications communities