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 Automate / Update rows in copied ...
Power Automate
Answered

Update rows in copied file, then send to email

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,

 

I'm new to Power Automate and I'm working on a flow. 

A bit of context:
I made a model in Excel which is updated based on the response of a forms ID. 
This updated model is send to the email provided by the respondent. 

All files are located on sharepoint.

I got the following Flow working:
1. Get the responses from Forms
2. Update the rows
3. Create a copy of this file

4. Send the copy to the respondent

 

However, I want to change the order because updating the rows of the "original" file and then copying this might lead to problems when multiple people take the Forms 'survey simultaneously. 

What I desire is:
1. Get responses from Forms

2. Copy the file

3. Update rows in copied file

4. Send copy to responder.

I have tried multiple things but can't seem to get this flow working. I even tried looking at the code and adding the items in .JSON but this does not seem to be working.

Can someone please explain how to get this flow to work?

Categories:
  • Verified answer
    rzaneti Profile Picture
    4,489 Super User 2026 Season 1 on at

    Hi @Anonymous ,

     

    You will need to identify the tables existing in your new file and populate it dynamically. 

     

    Take this table as example: 

    rzaneti_0-1692961499577.png

     

    You first need to extract the file content and create a new file (I believe that your problem is not in this part of the flow):

    rzaneti_1-1692961550782.png

     

    Then include a 'Get tables' action to identify all of the existent tables in the Spreadsheet that you created. In 'File' input, set the 'Path' dynamic content from your 'Create file' action. 

    rzaneti_2-1692961587913.png

     

    If you have only one table in the file, just add an 'Add new record into a table' action and populate the 'File' with the 'Path' dynamic content from your 'Create file' action and the 'Table' with the 'Id' dynamic content from your 'Get tables' action. It will automatically generate an 'Apply to each', as the 'Get tables' returns an array (even if you have only one table in your file). 

    rzaneti_3-1692961663296.png

     

    As Power Automate does not know your table structure, you will need to provide an object into 'row' input containing the column names as keys and the data that you want to insert as values. For my example table, I have the columns 'id' and 'name', so I used this object: {"id": "1", "name": "test"}.

     

    If you have any trouble to build this object, please share the column names from your table.

     

    Let me know if it works for you or if you need any additional help!

     

    -------------------------------------------------------------------------
    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.

    http://digitalmill.net/ 

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks, this fixed it! 

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 130

Last 30 days Overall leaderboard