web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Parse XML from HTTP re...
Power Apps
Unanswered

Parse XML from HTTP response to JSON with Flow and save data to Entity

(0) ShareShare
ReportReport
Posted on by 6

Hello, I can't solved problem with my flow to parse XML to JSON. I get HTTP POST response in XML format like this:

 

 

 

 

 

 

<?xml version="1.0" encoding="utf-8"?>
<databases_response>
<status>200</status>
<message>The request has been successfully processed</message>
<data>
<row id="1">
<column id="87828">BL848SS</column>
<column id="87829">PG307385</column>
<column id="87830">28.5.2018</column>
<column id="87831">13.10.2020</column>
<column id="87832">1590</column>
<column id="87833">86</column>
<column id="87834">BENZIN</column>
<column id="87835">Červená metalíza</column>
<column id="87836">5</column>
<column id="87837">1335</column>
<column id="87838">1870</column>
<column id="87839">2</column>
</row>
</data>
</databases_response>

 

 

 

 

 

 

I used xpath in my flow to get only <row></row> from response and after that transform with JSON function to JSON. Power Automate generated this schema to parse JSON:

 

 

 

 

 

{
 "type": "object",
 "properties": {
 "row": {
 "type": "object",
 "properties": {
 "@@id": {
 "type": "string"
 },
 "column": {
 "type": "array",
 "items": {
 "type": "object",
 "properties": {
 "@@id": {
 "type": "string"
 },
 "#text": {
 "type": "string"
 }
 },
 "required": [
 "@@id",
 "#text"
 ]
 }
 }
 }
 }
 }
}

 

 

 

 

 

 

However I don't get values from <column id=xxxx> from original XML response. I think the problem is to every value hasn't got original tag, but the same use only with id=xxxxx. Is it possible to change tags <column id=> to another for example with xpath. Or create other JSON schema and parse values from <column id=xxxxx> correctly?

 

Thanks a lot.

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 893

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 482

Last 30 days Overall leaderboard