Showing results for 
Search instead for 
Did you mean: 
Advocate II
Advocate II

Syntax for using expand transformation for SQL Get Rows aggregation

I saw this post:


I have been trying to use the expand transformation in order to get related data in one call.  I need data from 5 tables and would rather not have 5 Get Row steps.


Here is what I tried so far for the Aggregation Transformation field on the SQL Get Rows action:


  • apply=expand(myTable)
  • expand(myTable)
  • aggregate=expand(myTable)


I am referencing:


Each time I get an error:
by' expected at position 0 in 'apply=expand(myTable)'

What is the correct syntax to use the expand transfromation on the Get Rows action in Flow?

Community Support
Community Support

Hi @jonathanO,


The Aggregation Transformation field only support aggregate function, filter function and groupby function on Get rows action in Flow currently. The expand function is not supported in Aggregation Transformation field.


If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:



Best regards,


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.



So if that is true, what did Michael mean in the linked post when he stated:

"You could take a try with the Aggregation transformation under SQL Get Rows action, then expand the query with related tables:

Transformation expand

Follow the article above for the parameters."



Any update here about what Michael had meant in the other post?

Helpful resources

Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

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.

Users online (1,375)