cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
msze400
Frequent Visitor

Adding a Row into a Dynamically Made Excel File

I have a flow where my end goal is to copy an excel sheet from a static excel template which only contains a table as seen below and add a row onto the copied version of the template.

msze400_3-1620416857951.png

The flow currently has no errors but does not add the value "Test Company" to the company row. Is there a way to access and fill a column in the dynamically made copied excel file?

msze400_4-1620416943115.png

The flow above differs from writing to an already existing table if I were to write to the template as seen below:

msze400_5-1620417227123.png

 

Thanks in Advance

 

2 REPLIES 2
tom_riha
Super User
Super User

Hello @msze400 ,

I don't know if it'll work, but I'd try a JSON like this:

{
  "Column": "value"
}

in your situation
{
  "Company": "Test company"
}


[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]
GeoffRen
Microsoft
Microsoft

If you can't get the basic Add a row into a table action to work, you can try using Office Scripts, specifically Office Scripts with Power Automate. This is the 'Run Script' action on the Excel connector for Cloud Flows. With Office Scripts you can use the 'Run Script' action to execute javascript against a workbook. So you can create a script that explicitly adds a row with whatever data you want into the table of your choosing. I can help write a starter script for you if you need help with this.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,245)