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 Platform Community / Forums / Power Automate / Extract data node elem...
Power Automate
Unanswered

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,187 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

Forum hierarchy changes are complete!

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

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard