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 :
Power Automate - Process Mining
Answered

Extract data node element data from XML using power Automate

(0) ShareShare
ReportReport
Posted on by 18

Hi Team,

 

I am trying to extract data subject value from below mentioned XML. Please help

<Data>
<MessageHeader assist="Pune" subject="Gujrat" />
</Data>

Categories:
I have the same question (0)
  • Karlis Profile Picture
    23 on at
    Re: Extract data node element data from XML using power Automate

    Hi nazir

     

    I assume you're working on PowerAutomate Desktop?

    If that's the case, you should use the "Get XML element attribute" action where you should set the XPath Query to "//Data/MesageHeader" and Attribute Name to "subject"

  • Verified answer
    jinivthakkar Profile Picture
    4,181 on at
    Re: Extract data node element data from XML using power Automate

    @nazir here is what I did

     

    jinivthakkar_0-1619602303669.png

    xpath(xml(outputs('Compose')),'string(//@assist)') //returns value Pune
    
    xpath(xml(outputs('Compose')),'string(//@subject)') //returns value Gujrat

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • naZir Profile Picture
    18 on at
    Re: Extract data node element data from XML using power Automate

    Thanks Jiniv.

    Appreciate your effort. (y)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 614 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 401 Moderator

#3
chiaraalina Profile Picture

chiaraalina 282

Last 30 days Overall leaderboard