distinct view
#1062
Replies: 1 comment
-
I assume you want to have this query in a view in Dynamics, and that's why you try to save the view, correct? I don't understand why, though. I guess there is another table that just contains the sites, right? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm new here and have a fairly basic question I hope someone can answer.
I want to generate FetchXML to retrieve a list of distinct site names from a property table.
This is pretty much what I want;
but if I try to save this as a view I get an error -

If I add this attribute (below) the table is no longer distinct. The result view goes from 18 results to 500.
I presume the distinct filter is now looking at the propertytree4id field.
<fetch top="50" distinct="true"> <entity name="cr20b_propertytree4"> <attribute name="cr20b_sitecode" /> <attribute name="cr20b_sitename" /> <attribute name="cr20b_sitesyscode" /> <attribute name="cr20b_propertytree4id" /> <order attribute="cr20b_sitename" /> </entity> </fetch>
How can I fix this? thanks!
Beta Was this translation helpful? Give feedback.
All reactions