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 / Create an excel worboo...
Power Automate
Unanswered

Create an excel worbook and copy rows into table- question about triggers

(2) ShareShare
ReportReport
Posted on by 28
I have been following these steps to copy data from one spreadsheet into another spreadsheet. 
 
 
The automation I am trying to create is when someone uploads a file into a specific Share point folder two things happen: a new workbook is created with a table using a template, and then the data is copied from the uploaded file to the new workbook. 
 
I can get both actions to happen separately but I can't figure out how to connect them.  Right now both are triggered manually in two separate automations, but I want the whole action to complete automatically. 
 
I tried to run the copy data steps in the post above after creating a new workbook but it was unable to find the uploaded file. 
 
I have been staring at this thing for days and I am stuck! Suggestions on how to make this happen? 
 
Categories:
I have the same question (0)
  • AnthonyAmador Profile Picture
    2,553 Moderator on at
    Hi,
     
    You need to extract the information from the uploaded file and then paste it into a new workbook. For that, you need to use the Excel actions.
     
    To extract the information, you have to use the “List rows present in a table” action. However, you need to know the name of the table inside the Excel file. So first, you have to use the “Get tables” action to get the name of the table you want to extract the information from. If the name of the table will always be the same, you can skip this step.
     
    Then, in the “File” input for “List rows present in a table,” you have to use the dynamic content from the trigger, which I suppose will be “When a file is created,” to select the correct file.
     
    Can you elaborate on where exactly you are having issues?
     
    Best,
    Anthony
     
     
     
     
  • rutledgeam Profile Picture
    28 on at
    So I am probably doing this all wrong (especially since it is failing) but this is what I currently have set up. 
     
    So the input is the uploaded file and then having the data copied into a new excel workbook that is created using a template. I keep running into issues with the file ID- that the file can not be found due to a 404 status code. 
    The file being uploaded will have the same workbook and sheet name. 
    I tried to do the same automation in one flow- but ran into the same issues. 
     
     
     
     
     
     
     
  • AlexEncodian Profile Picture
    4,409 Moderator on at
    Can you share more detail about what the uploaded file looks like and what the template looks like? Is it structured tabular data? 
  • rutledgeam Profile Picture
    28 on at
    They are both excel spreadsheets. 
    The uploaded file is 16 columns and the amount of rows will vary. It is basically an exported file that needs to be customized. The data is not in a table- so it needs to be created. 
    The template is an excel file with an image and then a table. The column headers are already done so I just need to move the rows after the header from the uploaded file. 
  • AnthonyAmador Profile Picture
    2,553 Moderator on at
    @rutledgeam you need to redesign your flow. Why do you have two branches?

    Check this video, may can help you https://www.youtube.com/watch?v=un0Po1jxfn4

    Anthony.

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard