Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Using Power Automate Desktop to convert XML files to Excel files

Hi, I wanted to see if there is a way to convert XML files in a folder to the Excel files using Power Automate desktop. I see there is a way to iterate over files in a folder and read XML. What I seem to be missing is a way to convert XML to Excel/ write XML data to Excel. Any ideas?



Solution Sage
Solution Sage

Didi you try importing a xml to Excel?

1) Get the full path + name of XML file

2) Lauch Excel with a blank sheet

3) Navigate with UI elements to 'Developer' tab, then 'Import' under 'XML' group. In the select file window, use 'Populate text field in window' to fill the path&name of xml file captured in step 1 and click Import.
4) 'Save Excel' as xlsx file 

Previously you have to show Developer tab in Excel (Show the Developer tab (

Super User
Super User

You'll need to read the XML file, store its values into variables and then write those variables to an Excel file. Also, I'm assuming all your XML files have basically the same structure and you want the same output structure (same columns in Excel). Basically, you'll need to perform the following steps:

  1. Read the XML file as a whole through "Read XML from file" action.
  2. Get its values/attributes, using "Execute XPath expression" and/or "Get XML element value" and/or "Get XML element attribute" actions.
  3. Generate a new Excel file with "Launch Excel"
  4. Write the values captured from your XML file to your new Excel file via "Write to Excel worksheet"

This is a very high level generalization to guide you to the desired outcome.

Helpful resources

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.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (3,108)