cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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 @Anonymous ,

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
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

Users online (2,344)