web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Using 'Apply to Each' ...
Power Apps
Unanswered

Using 'Apply to Each' to add multiple rows to a table

(0) ShareShare
ReportReport
Posted on by 10

Hello,
I am trying to author what I thought would be a very simple flow. I want my customers to complete a simple table like this in an Excel template:


Template Table

Rights Holder

Fee

John

£5

Paul

£10

George

£15

Ringo

£20


And for that table to be used to populate another table in a separate Excel file like this:

Master Table

 

Column 1

Rights Holder

Column 3

Column 4

Column 5

Column 6

 

John

  

£5

 
 

Paul

  

£10

 
 

George

  

£15

 
 

Ringo

  

£20

 

 

The template table contains a different number of rows each time but I have been able to get Power Automate to create tables of different lengths dynamically when the template sheet is saved to the designated OneDrive location.


The problem I have is mainly around getting Power Automate to add multiple rows (ie ALL the rows) from the original table into the Master Table.


I am trying to use Apply to Each to add a row into the Master table for every row in the Template table. Power Automate is telling me that it expects an Array in order to ‘Apply to Each’.


Does this mean I need to convert the JSON output to an array that I can loop through until all the rows have been added? Or is there another kind of table format I should use?

 

Here is the relevant part of my flow.

bonnierobin_0-1639837935593.png

Any help would be greatly appreciated.

Many thanks,

 

Categories:
  • dgatewood Profile Picture
    34 on at

    I think the JSON portion might be unnecessary? My flows are typically do a  List All Rows Present in a Table of the input file, output value, go into a For Each, sometimes I conditionally check if it already exists in some scenarios to ignore or update that item But in the for adding all my rows I do For Each -> Add Rows to a table For my destination table where I just match the destination column name from my input tables column names. It seems as though you might have more intricate reasons for not doing a direct input approach though. Are you outputting a whole new table into a spreadsheet each time you get a template?

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard