Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Xpath outputs in text format

(0) ShareShare
ReportReport
Posted on by 14,756

Hi all

I am exploring the options to use xpath() funtion for XML manipulation.

However, I am struggling trying to recreate the first example from the documentation:

 

Flow-xpath-docexample.png

 

The way I proceed with PowerAutomate to reproduce the example above is as follows:

Flow-xpath-editmode.png

However, when executing the flow, I do not get the result nodes in text format, but in UTF-8. Am I doing something wrong?

Flow-xpath-executionmode.png

  • efialttes Profile Picture
    14,756 on at
    Re: Xpath outputs in text format

    @v-bacao-msft 

    Thanks for the links!

    I found what was the problem, now I managed to get text output by applying the following expression:

     

    xpath(xml(outputs('Compose')), 'string(/produce/item/name)')
  • Verified answer
    v-bacao-msft Profile Picture
    on at

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1