cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MattFinlay
Regular Visitor

Unable to open excel template file and save as new

Hi Gurus,

 

I'm trying to open a template xlsx file (from OneDrive), update the tables in it, and save to a new file whilst leaving the template in place for the next run. 

 

I've opened the template using "Get File Content", which works. I can easily add rows to the template and save this - I can also create a new file easily, but I can't get them to work together to save a new file and leave the template untouched. This is what I've got currently, It's in a Array loop where the AirportName variable is changed in each iteration:

 

MattFinlay_0-1642757903198.png

 

This creates the files, but errors when trying to populate the rows:

 

MattFinlay_1-1642758331524.png

 

The Table and required Row value are what I'm expecting - so not sure why it's failing. I've tried moving this before the file creation but get the same error.

 

not asking for exact solutions, if someone could just point me in the right direction for a technique I'd be eternally grateful. I've been trawling the internet for a couple of days and can't find anything to help my specific case.

 

thanks

Matt

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
MattFinlay
Regular Visitor

Typically I managed to sort this myself shortly after posting this - above logic is basically sound, just needed to put the single variable into an array, to allow it to be used in the "Add a new row into a table":

 

MattFinlay_0-1642762461164.png

 

 thanks

Matt

View solution in original post

2 REPLIES 2
MattFinlay
Regular Visitor

Typically I managed to sort this myself shortly after posting this - above logic is basically sound, just needed to put the single variable into an array, to allow it to be used in the "Add a new row into a table":

 

MattFinlay_0-1642762461164.png

 

 thanks

Matt

Hi @MattFinlay ,

 

I'm glad your problem is solved. In the "Add a row into a table" action we need to add the value for the specified column name.

 

Best Regards,

Jessica Gu

 

 

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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (5,004)