cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Meneghino
Community Champion
Community Champion

Correct syntax for SQL get rows aggregation transformation?

I have an Azure SQL Database table with a column called UserId of int type that has repeated values.

i want Flow to retrieve only the distinct values, so I am sure I need to use the aggregation transformation of get rows action, but I cannot get the syntax right. I tried groupby(UserId) but that gives an error and the flow fails.

Please help!

 

1.JPG

 

@v-xida-msftor @v-micsh-msft or @v-yuazh-msft may be able to help

2 REPLIES 2
v-xida-msft
Community Support
Community Support

Hi @Meneghino,

 

Could you please share more details about your Azure SQL table?

Do you want to group your table records based on the UserId field?

 

Thanks for your feedback, I have made a test on my side, I afraid that the groupby Aggregation transformation is not supported in the "Get rows" action of SQL Server connector of Microsoft Flow currently, if you would like this feature to be added in Microsoft Flow, please consider submit an idea to Flow Ideas Forum:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

I have posted this issue to my product team, if the issue is solved, I would reply here.

 

Best regards,

Kris

 

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hi @v-xida-msft

 


@v-xida-msft wrote:

Hi @Meneghino,

 

Could you please share more details about your Azure SQL table?

 

It is a plain vanilla table with a single column primary key

 

Do you want to group your table records based on the UserId field?

Yes

 

Thanks for your feedback, I have made a test on my side, I afraid that the groupby Aggregation transformation is not supported in the "Get rows" action of SQL Server connector of Microsoft Flow currently, if you would like this feature to be added in Microsoft Flow, please consider submit an idea to Flow Ideas Forum:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas


DONE here: https://powerusers.microsoft.com/t5/Flow-Ideas/Add-support-for-groupby-in-SQL-Server-Azure-SQL-Datab...

 

I have posted this issue to my product team, if the issue is solved, I would reply here.

 

Best regards,

Kris

 

 


 

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,224)