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
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (2,173)