Read XML From File Action in Desktop Flow using Microsoft Power Automate


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

Desktop flows are the existing robotic process automation (RPA) capabilities in Power Automate and enable to automate of all repetitive desktop processes. More Details

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.

Read XML from file action is used to read an XML file.

Reading this article, you can learn how to Read XML from file Action in Desktop flow using Microsoft Power Automate.

The following important tools are required for developing Microsoft Power Automate,

  1. Windows 10/11 (Recommended)
  2. 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.

New Flow

Next, Give the Flow name as PADReadXML, Click the Create button,

Build a flow

After that, we are able to see the Desktop flow.


Step 2. For Testing, Read XML from file action.

First, Add the Read XML from file action and Set the File path Parameter as F:/Sample.xml and Variables produced parameter as XmlDocument and click Save,

XML Document

For Displaying Result, Add the Display message action and Set the Message box Title Parameter as DispReadXMLFile, Message to display Parameter as %XmlDocument% Click Save Button

Read XML File

Now, Save the PADReadXML Desktop Flow.


Step 3. Now we can run your PADReadXML Desktop Flow in Microsoft Power Automate.

The Sample.xml file content.


The output of the PADReadXML is,

XML Document


Now you are successfully tested. Read XML from file Action in Desktop flow - PADReadXML in Microsoft Power Automate.

Similar Articles