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

Community site session details

Session Id : a+YR30ku6t/rdD/qK07NoE
Power Automate - Using Flows
Answered

Difficult to use Xpath(XML)

Like (0) ShareShare
ReportReport
Posted on 4 May 2020 03:46:22 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 06 May 2020 at 00:25:29
    Re: Difficult to use Xpath(XML)

    Thank you for information!

  • Verified answer
    v-bacao-msft Profile Picture
    on 04 May 2020 at 09:30:53
    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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Featured topics

Restore a deleted flow
Loading complete