Hi,
I'm trying to get the number of Service Activities with Distinct Clients, however the FetchXml gives the same number back whether distinct or not. We already have sample data with the same clients on different Service Activities.
<fetch version="1.0" output-format="xml-platform" mapping="logical" aggregate="true"> <entity name="serviceappointment"> <attribute name="new_client" alias="Count" aggregate="count" distinct="true" /> </entity> </fetch>
<fetch version="1.0" output-format="xml-platform" mapping="logical" aggregate="true"> <entity name="serviceappointment"> <attribute name="new_client" alias="Count" aggregate="count" /> </entity> </fetch>
They both return the same number. Am I missing something?
*This post is locked for comments