Skip to main content

Notifications

Community site session details

Community site session details

Session Id : zIcEJ/pygwVhe+yTvk76Hf
Power Automate - Power Automate Desktop
Answered

Retrieve xml element value

Like (1) ShareShare
ReportReport
Posted on 9 Apr 2021 09:50:41 by 14

Hi,

 

Below is the xml and need to retrieve only market value.

I tried providing "root/documents/document/market" in XPath query in "Get XML element value" but it retrieves nothing.

Please help me in this regard. Thanks in advance.

 

<?xml version="1.0" encoding="utf-8"?>
<root>
<documents>
<document>
<isSpecimen value="False" />
<report value="ReportTest" />
<type value="Parent" />
<market value="CountryTest" />
</document>
</documents>
</root>

 

 

  • Community Power Platform Member Profile Picture
    on 06 Oct 2021 at 13:35:20
    Re: Retrieve xml element value

    Hello @maheshmacintosh 

     

    As @A_I already said, you have to use action "Get XML element attribute" for this purpose.

     

    shindomo_0-1633527110254.png

     

    Result:

    shindomo_1-1633527288569.png

     

    Thank you.

  • Verified answer
    A_I Profile Picture
    16 on 05 Oct 2021 at 22:44:51
    Re: Retrieve xml element value

    With that syntax, use Get XML element attribute instead of Get XML element value

  • burque505 Profile Picture
    398 on 09 Apr 2021 at 19:34:40
    Re: Retrieve xml element value

    @maheshmacintosh, I believe you have discovered a bug. 

    I ran a small test with the file 'books.xml' from Microsoft available here. 

    I also viewed the video at this link. At approximately 4:49 in the video, the following screen is shown:

    should get this.PNG

    Obviously this is based on a different XML file, but we should still get a list of properties. We don't.

    For the file 'books.xml',

    read xml.png

    after running and clicking on the variable, we get only a single property':

    books.xml.png

    The single property '.XmlNode' is shown. Clicking 'more' we get this:

    more.png

    In short, it appears to me that this Action is not functioning properly. I feel it is safe to assume the remainder of the XML Actions may also not be functioning properly.

    Regards,

    burque505

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Power Automate Desktop

#1
eetuRobo Profile Picture

eetuRobo 18 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 6

#2
John_Mavridis Profile Picture

John_Mavridis 6 Microsoft Employee

Overall leaderboard
Loading started