I got the following response from odata rest API when using distinct, so that I can pull the unique values of a specific column within the contact entity type.
api/data/v8.0/contacts?fetchXml=<fetch mapping="logical" distinct="true" version="1.0">
<entity name="contact">
<attribute name="leadsourcecode" />
</entity>
</fetch>
'select' and 'expand' cannot be both null or empty."
Does any one know how to get unique values a specific columns in LCMS 2016 web API?
Thanks in advance
*This post is locked for comments