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 / Microsoft Power Automate
Power Automate
Unanswered

Microsoft Power Automate

(0) ShareShare
ReportReport
Posted on by
I have an XML file that has a tag called <Uprn> this tag happens to be in the file multiple times, I have retrieved all the values from all the <Uprn> tags.  I have added a loop and an IF action to test each value.  How do I update a value that does not match the IF statement?
When I try the Set XML element it updates the first value not the incorrect value.
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    52,938 Super User 2025 Season 2 on at
    Microsoft Power Automate
     
    I have to try to answer since we have the same initials :-0)
     
    But I do have a question first as it determines my answer. Are you attempting to simply change the value of Uprn and then spit out XML, or do you want JSON or text, does it matter?
     
    I ask because you are going to need to use XPath to do what you are asking, that are you going to have to convert it to JSON, or you are going to need to treat it as raw text, any of those will work. 
     
     

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
Tomac Profile Picture

Tomac 532 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 461 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 256

Last 30 days Overall leaderboard