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 1 Discover the latest updates and new features to Dynamics 365 planned through September 2020
Release overview guides and videos Release Plan | Preview 2020 Release Wave 1 Timeline
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 | Upcoming TechTalks
I have a fetchXML that returns data like this
wondering if I can get distinct group IDs using the same fetchXml by using some filter or otherwise have to write a separate query to get distinct groups?
Use this syntax in your Fetch XML definition.
fetch mapping='logical' distinct='true'>
do you need the list Groups or you just to render as a group
if you need the list perhaps the easiest way is repeating the fetch only retrieving the GroupId and adding the distinct as per Adrian indication
if your looping and want to render as a group, I would suggest simply storing in a variable the last GroupId and keep verifying if it has changed
worst case scenario you can do 2 fetchs.. one for the groups.. while looping, another fetch filtering by the group.. but this will decrease the performance
“if I can get distinct group IDs using the same fetchXml by using some filter” – No, you cannot filter it using Fetch XML.
You have to write separate query to get distinct group.
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true ">
<attribute name="gropupid" />
Hope this helps.
Business Applications communities