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 / Create Excel file and ...
Power Automate
Answered

Create Excel file and add row

(1) ShareShare
ReportReport
Posted on by 2 Moderator

Hello,

 

I want to create an Excel File from a template and then add a single row with content from a Forms response to that new file and store it in SharePoint.

 

I have trouble referencing the newly created Excel file/table.

 

schwibach_0-1637418073138.png

 

I could create the new excel file by getting the file content from the template stored in SharePoint and then creating a new file with that content. (I could also create a new table in that file, but that doesn't seem to help me reference the table)

 

When I add a row to a table, I'm lacking the columns of the table to be filled in.

Is there a way to communicate the schema to PowerAutomate so it will let me fill in the columns for the file. 

 

Thank you guys!

Categories:
  • Verified answer
    DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @schwibach 

     

    You want to use Get Table and then Filter on Table Name to get the First Match and save creating an apply to each loop.

     

    DamoBird365_0-1637512612695.png

     

    You can then call the table name from the filter with:

    body('Filter_array')?[0]?['Name']

     

    DamoBird365_1-1637512649268.png

    and the row data is inserted as a JSON object - make sure you get your column names identical as it is case sensitive.

     

    {"Col1":"1","Col2":"2","Col5":"5"}

     

    DamoBird365_2-1637512699340.png

     

    Please consider accepting my answer as a solution if it helps to solve your problem.

    Cheers
    Damien

    Please take a look and subscribe to my YouTube Channel for more Power Platform ideas and concepts, or take a look at my website. Thanks

     

  • schwibach Profile Picture
    2 Moderator on at

    Thank you so much! Works like a charm. Never would have guessed how to do it myself!!!!

    THANK YOU!!!

  • TechWheel Profile Picture
    2 on at

    Could this work with adding multiple rows?

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 430

#2
11manish Profile Picture

11manish 341 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 282

Last 30 days Overall leaderboard