cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ahmadbutt
Helper IV
Helper IV

I can't save a file as .xlsx type (Excel file), is this not possible? (see screenshot)

 

- Save file as .txt file works. <-

- Save file as .xlsx DOES not work... <-

 

xlsx.PNG

1 ACCEPTED SOLUTION

Accepted Solutions

You can create a CSV file using the Create file action. You can create an Excel file, but you then have to create the table, and insert each row into the table, which would look something like this: 

CreateXLSXCreateTableFromList.PNG

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

4 REPLIES 4
Brad_Groux
Community Champion
Community Champion

The problem is that the Create file action only supports text-based file creation (txt, csv, etc.). You'll need to start with a blank/empty .xlsx file, create a copy of that, populate the name dynamically, and save the file. 

Then you'd need to use the Excel connector to add rows to the table in the dynamically created .xlsx file. The problem with this will be reliability, because the Excel connector has many Known issues and limitations

With that said, the Plumsail Documents connector can cut down a number of these steps.  See their How to create Excel XLSX document from template in Microsoft Flow, Azure Logic Apps and PowerApps do... for more info.

If you could provide an expanded screenshot of your Flow and steps, and of any detailed error messages you're receiving we could likely better assist you. 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

@Brad_Groux Thanks for helping me. See screenshots, can you maybe show with pictures what u mean, so I can understand it better. This is what I got now: 

 

1e.PNG2e.PNG

 

SP list:

Get items SP list.Get items SP list.

@Brad_Groux  Is there other file types that I can use instead of .txt with the create file action. I need something like Excel so I can save the file.

You can create a CSV file using the Create file action. You can create an Excel file, but you then have to create the table, and insert each row into the table, which would look something like this: 

CreateXLSXCreateTableFromList.PNG

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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 (3,171)