Microsoft Power Automate is a software by Microsoft for automation of recurring tasks. It is part of the Microsoft Power Platform line of products together with products such as Power Apps and Power BI. More Details https://powerautomate.microsoft.com/en-us/.
Desktop flows are the existing robotic process automation (RPA) capabilities in Power Automate and enable the automate of all repetitive desktop processes. More Details https://docs.microsoft.com/en-us/power-automate/desktop-flows/introduction.
Power Automate provides the capability to use desktop flows to manage XML attributes and elements. Extensible Markup Language (XML) is a markup language and file format for storing, transmitting, and reconstructing arbitrary data.
Get XML element value action is used to Get the value of an XML element.
Reading this article, you can learn how to Get XML element values in Desktop flow using Microsoft Power Automate.
The following important tools are required for developing Microsoft Power Automate.
- Windows 10/11 (Recommended)
- Power Automate Desktop - Download the Power Automate installer
Now we can discuss step-by-step App development.
Step 1. Open Microsoft Power Automate -> New Flow and Give the Flow name as PADGetXMLelementvalue. Click the Create button.
After that, we are able to see the Desktop flow.
Step 2. For Testing, Get XML element value action.
First, Add the Read XML from file action, Set the File path Parameter as F:/Sample.xml and Variables produced parameter as XmlDocument, and click Save.
Next, Add the Get XML element value action, Set the XmlDocument Parameter as %XmlDocument%, XPathquery parameter as %XmlElementValue%, Get Value as parameter as Text Value and Variables produced parameter as XmlElementValue and click Save.
For Displaying Result.
Add the Display message action and Set the Message box Title Parameter as DispGetXMLEleValue, Message to display Parameter as %XmlElementValue% Click Save Button.
Now, Save the PADGetXMLelementvalue Desktop Flow.
Step 3. Now, we can run your PADGetXMLelementvalue Desktop Flow in Microsoft Power Automate.
The output of the PADGetXMLelementvalue.
Summary
Now you have successfully tested Get XML element value Action in Desktop flow - PADGetXMLelementvalue in Microsoft Power Automate.