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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,805)