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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Template use forms to ...
Power Automate
Suggested Answer

Template use forms to select and copy excel table

(1) ShareShare
ReportReport
Posted on by 4
Ok bear with me here.  I have an excel sheet with about 30 tables on the one worksheet.
Using a Question in MS Forms, I'd like that selection to match and copy the selected table into a new excel document  - importantly with option to select a number of table choices simultaneously and have them be consecutively in a master excel document which would be neat enough to print
so I'm guessing
When a form is submitted
Get response ID
Create Array of Responses
Get Tables
If response matches one of tables
Create new (Excel) file in Sharepoint
Create Table
list rows present in table
add rows to table
 
....and that's as far as my thought process went...  any suggestions?
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,433 Super User 2025 Season 2 on at
    Hi,
     
    0. Pre-Step, create an Excel file (I'll say template but i dont mean its a template for real)
    Simply put in all the tables in the Order etc you want so you can print it later.
     
    1. When a form is submitted
    2. Get Response Details (changed from ID)
    Create Array of Responses
    2b. Copy the Template file you created, into a new location using Get File Content + Create File or the Copy Action to do it all at once
    to either SharePoint or OneDrive
     
    3. If you have a Column that allows them to Select menu, then you don't need to Create an Array its already an Array
    --So instead
    3a. Apply to Each
    -Adding your MultiChoice option as the From
    Inside the apply to each
     
    Scenario 1: The Names for sure match Tables
    3b. Add a list Rows in a Table
    3c. Put a condition
    Left side, put length('Your List Rows in a Table Name Action')
    in the middle put is greater than
    right side 0
     
    in the YES side of the condition
    put an Apply to each
    Loop through the records
     
    3c. Do an Add or Update, based on the KEY you have created for all tables (again I am assuming you create a nice "template" first,
    or yes you have to do what you said, which is create a Table in Excel first
     
    3d. If you have to create a Table, then use the Add a Row to a Table (not an update since you just created the table it wouldn't have rows)
     
    AND DONE Scenario 1
     
    The only reason the Table wouldn't match an existing table is if you plan on building all of these dynamically, totally do able, but then you would
     
    3b. Create Table
    3c. List rows in a Table
    3d. Put a condition
    Left side, put length('Your List Rows in a Table Name Action')
    in the middle put is greater than
    right side 0
     
    in the YES side of the condition
    put an Apply to each
    Loop through the records
     
    3e. Do an Add or Update, based on the KEY you have created for all tables (again I am assuming you create a nice "template" first,
    or yes you have to do what you said, which is create a Table in Excel first
     
     
    AND DONE scenario 2
     
  • GW-25081507-0 Profile Picture
    4 on at
    Wonderful. I am most grateful for your time. I will have a look at your suggestions as looks like my Flow could be feasible. Though I am not sure I understand each step, so may revert back to you when needed. 
  • GW-28091308-0 Profile Picture
    9 on at
    So, im just getting round to building this.
    I am not sure I understand this section
    Could you clarify?  where is the column?
    The array I thought was the list of table options chosen the MS Form
     
    3. If you have a Column that allows them to Select menu, then you don't need to Create an Array its already an Array
    --So instead
    3a. Apply to Each
    -Adding your MultiChoice option as the From
    Inside the apply to each “
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard