I am trying to fetch the rows from which I don't need duplicate rows.
in SQL I can use distinct but if I use distinct in OData SQL Server query filter it is not allowing...
what is the reason ?
Hi friend what I know is that in ODATA you can do this operations
System Query Option $filterSystem Query Option $orderbySystem Query Option $top and $skipSystem Query Option $countSystem Query Option $expandSystem Query Option $selectSystem Query Option $search
Hi @ShivaPatpi ,
Could you please show us how you configure specific actions?
Best Regards,
I used this work around
https://powerusers.microsoft.com/t5/Connecting-To-Data/Use-distinct-on-SQL-connector-query/m-p/160675#M3529
but my question still remains the same:
Why should I get duplicate values from SQL
later on why should I do additional work to remove the duplicates by setting the variable and followed by union.
why can't we have a feature request to get rows from SQL in that ODATA select statement itself ?
If you were looking to get distinct records without using the Execute a query action, then you could use this template: https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/Get-Distinct-Records/td-p/2191533
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 462 Super User 2025 Season 2
Tomac 456 Moderator
abm abm 243 Most Valuable Professional