Showing results for 
Search instead for 
Did you mean: 
New Member

Loop through XML data insert into excel columns



I've a flow where we are fetching an XML file from FTP and would like to iterate through it and insert its data into one row in Excel.


Currently, everything is working so far that we can get XML data and do an early xPath so that we have smaller amount of data to work with. We are also able to insert that XML data into one cell in Excel.


My question:

The proof-of-concept I have today is that I can do an xPath for each separate cell I want to insert data in. It has to be a smarter way working with this stuff? Is there any way I can iterate through all elements in my XML data and post in a separate cell in Excel?




Community Support
Community Support

Re: Loop through XML data insert into excel columns

Hi @RobertAreno ,

Do you want to iterate through all elements in your XML data, and then patch the data back to one row in your Excel table?


Based on the needs that you want to achieve, I think agree with your thought almost. I think the xml() expression and xpath() expression could achieve your needs in Power Automate flow.


Please check and see if the following threads would help in your scenario:


I afraid that there is no better solution to achieve your needs in Power Automate currently. If you would like new feature or function to be supported in Power Automate to parse XML data without xpath expression, please submit an idea to PowerApps Ideas Forum:


Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Community Conference

Power Platform Community Conference

Come join us today! Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (2,789)