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 Automate / Difficult to use Xpath...
Power Automate
Answered

Difficult to use Xpath(XML)

(0) ShareShare
ReportReport
Posted on by 22

Hi I have a problem to use Xpath.

 

This is the XML that I want to make JSON

 

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<soap:Body>
		<GetSKITankStockResponse xmlns="http://tempuri.org/">
			<GetSKITankStockResult>
				<TIA010_Schema>
					<CHANGE_DT>0001-01-01T00:00:00</CHANGE_DT>
					<YMD>20180915</YMD>
					<ITEM_CD>B023 </ITEM_CD>
					<TANK_CD>705 </TANK_CD>
					<TANK_NM>T-705 </TANK_NM> 
					<PBL_STOCK>0</PBL_STOCK>
					<TBL_IN1>0</TBL_IN1>
					<TBL_IN2>0</TBL_IN2>
					<TBL_OUT1>0</TBL_OUT1>
				</TIA010_Schema>
			</GetSKITankStockResult>
		</GetSKITankStockResponse>
	</soap:Body>
</soap:Envelope>

 

 

First, I removed the soap: and I try to use Xpath. But I can't get any response.

 

This is my Example

Compose1:

replace(body('GetSKITankStock'),'soap:','')
Compose2:
xpath(xml(outputs('Compose')),'string(/Envelop/Body/GetSKITankStockResponse/GetSKITankStockResult/TIA010_Schema/ITEM_CD)')
 
Can U help me plz?
Categories:
I have the same question (0)
  • Verified answer
    v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @donggyunHa ,

     

    Please check this similar thread and see if it helps:

    https://powerusers.microsoft.com/t5/General-Power-Automate/help-with-Xpath-and-Soap-message/td-p/322341

     

    Besides, for more details about XPath() function, please check this online doc:

    https://docs.microsoft.com/en-gb/azure/logic-apps/workflow-definition-language-functions-reference#xpath

     

    Best Regards,

  • SYCNS Profile Picture
    22 on at

    Thank you for information!

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 Automate

#1
Vish WR Profile Picture

Vish WR 780

#2
Valantis Profile Picture

Valantis 668

#3
Haque Profile Picture

Haque 601

Last 30 days Overall leaderboard