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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Condition for HTTP output
Power Automate
Answered

Condition for HTTP output

(0) ShareShare
ReportReport
Posted on by 227

Hi,

 

I created the flow base on HTTP and then response is only XML as below. I want to put the condition after HTTP output and make the another action. But i still cannot find the condition for http output body. I only can see @equals(body('HTTP'), '')

 

Here is my http output body.

 

 

<Soap:Envelope xmlns:Soap="http://schemas.xmlsoap.org/soap/envelope/">
 <Soap:Body>
 <IsNASKeepAlive_Result xmlns="urn:microsoft-dynamics-schemas">
 <return_value>Your return value is here.</return_value>
 </IsNASKeepAlive_Result>
 </Soap:Body>
</Soap:Envelope> 

I want to put the condition like this on condition.

 

 

IF return_value = "" THEN
 'Do something
ELSE
 'Do something

Regards,

Categories:
I have the same question (0)
  • chandbhu Profile Picture
    on at

     

    Hi @yukonn,

     

    You can try adding condition card like below.

     

     

    AddCondition.png

     

     

     

     

     

     

     

     

     

    AddCondition2.png

  • Verified answer
    yukonn Profile Picture
    227 on at

    Hi Chandbhu,

     

            Thanks for your reply. I tried it before i post here. We cannot direcly use body to check for condition. Because retun body has xml format, so that equal function always return false. i used the compose func and check the data. here is my logic for other.

     

    Here is code inside compose

     

    "@xpath(xml(body('Http')), 'string(/*[name()=\"Soap:Envelope\"]/*[name()=\"Soap:Body\"]/*[name()=\"IsNASKeepAlive_Result\"]/*[name()=\"return_value\"])')"

     

    Flow

     

    Regards,

  • Meneghino Profile Picture
    6,949 on at

    Hi @yukonn

     

    I am having great trouble with XML from this site of the European Central Bank:

    http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml

     

    What is the xPath expression to obtain the date value?

     

    I have tried this:

     

    xpath(xml(body('HTTP')),'string(gesmes:Envelope/Cube/Cube/@time)')

     

     

    But I get this error:

    The template language function 'xpath' parameters are invalid: the 'xpath' parameter must be a supported, well formed XPath expression. Please see https://aka.ms/logicexpressions#xpath for usage details.

     

    Any ideas?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 378 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 305 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 155 Most Valuable Professional

Last 30 days Overall leaderboard