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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Rename xml files with ...
Power Automate
Unanswered

Rename xml files with few details from inside the xml file

(0) ShareShare
ReportReport
Posted on by 2

Hi!

I am new in working with Power automate.

Would you help me with renaming xml files with concatenate of free text and few details from inside the xml file.

Is there any tutorial for that?

Thx

  • lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at

    Read anything you can about xpath .

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    I don't think there is a tutorial, but there are some valuable references about reading XML files here: https://learn.microsoft.com/en-us/power-automate/desktop-flows/actions-reference/xml

    Also, try watching some YouTube tutorials on reading XML in Power Automate Desktop.

     

    Then, if you still can't figure it out, provide a sample XML here and tell us which values you want, and we can help you.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Ramoniq Profile Picture
    2 on at

    I guess my problem is finding the right XPath query.

    Here is an exemple opened with Visual Studio Code :

    Ramoniq_0-1703279218417.png

    The lime marked information is what I want to bring in the name of XML file.

    The tutorials I found have xml files with simple structure and I have tried similar approaches but no success.

  • lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at

    Somewhere around AuditFile/Header/Company/RegistrationNumber.

     

    Would be better if you could provide the actual XML instead of a screenshot.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Since your file includes namespaces, there's a special approach to reading it with PAD. You need to use the local-name() function in your XPath. For example, to get the RegistrationNumber, you could use the following:

    //*[local-name()='RegistrationNumber']/text()

     

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 273 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 235

#3
David_MA Profile Picture

David_MA 172 Super User 2026 Season 2

Last 30 days Overall leaderboard