Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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?
  • SYCNS Profile Picture
    22 on at
    Re: Difficult to use Xpath(XML)

    Thank you for information!

  • Verified answer
    v-bacao-msft Profile Picture
    on at
    Re: Difficult to use Xpath(XML)

     

    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,

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow