RPA Reality Check: When Power Automate Desktop Flows Pay Off, and When They Don't
"Can we just get a bot to do it?" usually arrives after someone has watched a recorder click through a screen and fill in a form. The demo works. The question is whether it will still work on a Tuesday in six months, after the vendor ships an update, the screen resolution changes, and the person who built it has moved on. Robotic process automation (RPA) in Power Automate, which Microsoft calls desktop flows, is a real tool with a real place. It is also the most fragile kind of automation you can own. This post is for the IT manager or director deciding whether a process should get a robot: when RPA is the right answer, what attended and unattended automation actually require, where it breaks, and what running it properly looks like.
The short answer
Use RPA when the system you need to automate has no connector and no API you can reach, and the work is repetitive, rule-based, and high enough in volume to justify upkeep. Legacy desktop clients, older line-of-business systems, and vendor websites with no integration story are the usual candidates.
Don't use RPA when a connector, a custom connector, or an API exists. Microsoft's own planning guidance ranks those first and marks both browser and desktop UI automation as easily affected by system changes. A connector that calls an API keeps working when a screen is redesigned. A robot that clicks the screen does not.
Treat every desktop flow as a bridge, not a destination. Write down what would let you retire it, such as the vendor shipping an API or the system being replaced, and check that condition every time the flow breaks.
If you only remember one test: ask whether the system's owner would notice, warn you, or care if they changed the screen your robot depends on. If the answer is no, you are signing up to maintain that robot every time they do.
What Microsoft's own guidance says first
Microsoft's Power Automate planning guidance lays out automation methods in a clear order. A built-in connector comes first. A custom connector is the preferred route when you have a developer who can build one, because it talks to a published API that "should be resilient to system changes." The HTTP connector is next for one-off developer scenarios. Web browser automation and desktop application automation come last, to be used only when no connector exists.
The comparison table in that guidance is the part worth showing to whoever asked for the bot. Connectors, custom connectors, and the HTTP connector are marked as not easily affected by system changes. Web browser automation and desktop application automation are both marked yes. Microsoft's decision flowchart says the same thing in three questions: are connectors available, and if not, do you have a developer who can create one? Only when both answers are no does it point to desktop flows.
None of this means RPA is bad. It means RPA is what you use when the better options are closed, and you should check that they really are closed before you build. "Nobody looked for an API" is the most common reason a desktop flow exists that shouldn't.
Where RPA earns its place
The system has no API and won't get one. An older desktop client, a terminal emulator, or a vendor portal that only offers a web page. If the data has to get in or out and someone is retyping it today, a desktop flow can take over the typing.
The volume is real and the rules are stable. RPA pays off on work that happens often, follows the same steps every time, and has inputs that come in a predictable shape. Microsoft's process mining in Power Automate exists partly to find these: it extracts event data from your systems of record so you can see how a process really runs and where automation would help. If you can't describe the steps the same way twice, a robot won't either.
It's a bridge with an end date. A desktop flow that moves data from a system you're retiring next year is a good use of a few weeks. It keeps the business running while the real fix arrives, and it has a natural end.
It sits behind a cloud flow. Microsoft's guidance notes that complex automations can combine methods. A common pattern: a cloud flow handles the trigger, the approvals, and every system that has a connector, and calls a desktop flow only for the one step that has to drive a screen. That keeps the fragile part as small as possible.
Attended or unattended: the choice that sets everything else
Desktop flows run in one of two modes, and the difference is bigger than it looks.
Attended means the flow runs on a machine where a user is signed in, usually the person who needs the work done. Microsoft's licensing page says Power Automate Premium includes the ability to register a workstation, create unlimited desktop flows, and run them in attended mode on that registered machine through an attended bot that comes with the license. Attended automation suits work a person kicks off and watches, such as filling a form in a legacy client from data they already have open.
Unattended means the flow runs with nobody at the machine, triggered from the cloud on a schedule or an event. Microsoft's documentation for unattended runs sets out conditions that surprise teams who built their first flow on a laptop:
- Unattended desktop automation needs the Power Automate Process plan.
- Power Automate signs in to the machine through a remote desktop session it creates, runs the flow, and signs out. The account in the connection needs permission to create that session, which in most cases means membership in the machine's Remote Desktop Users group.
- The machine must be available with all users signed out. On Windows 10 and Windows 11, an active Windows session, even a locked one, prevents unattended runs.
- Unattended desktop flows can't run with elevated privileges.
- The remote desktop session's default screen resolution can differ from the one the flow was built on, which can cause missed or wrong elements. Microsoft recommends setting the resolution for unattended mode.
The licensing shape follows from this. Microsoft's licensing page says a Process license allocated to a machine becomes an unattended bot that can run one desktop flow at a time, and that running flows in parallel means licensing for the maximum number of runs you need at once. Microsoft's licensing page also lists Premium as not including unattended RPA. Licensing changes, so check current terms at decision time, but plan on the assumption that attended and unattended are licensed differently.
Where the robot runs
A desktop flow needs a Windows machine, and someone has to own it.
Your own machines. Microsoft's prerequisites list Windows 10 and Windows 11 (Home, Pro, Enterprise) and Windows Server 2016, 2019, 2022, and 2025. Devices with ARM processors aren't supported. On Windows Home you can author and monitor flows, but you can't trigger desktop flows from the cloud. Work or school users also need a Dataverse database in their default environment to create desktop flows, because that's where the flows are stored. If you run your own machines, you own patching, the applications the robot uses, the service accounts, and what happens when someone signs in to "just check something" during a run. Microsoft's documentation says signing in during an unattended run isn't supported and might cause the flow to fail.
Hosted machines. Microsoft's hosted RPA runs desktop flows on Microsoft-managed infrastructure in Azure. Hosted machines give makers a quick way to build, test, and run desktop flows without setting up physical machines.
Hosted machine groups. For unattended production work at scale, hosted machine groups provision bots automatically when flows are waiting, up to a maximum set when the group is created, and share capacity across the groups in an environment. They need the Hosted Process license, sized at one unit per hosted bot you want to run in parallel. Microsoft's documentation also lists operational details worth knowing before you commit: remote desktop access to hosted machine groups isn't supported, they run unattended only, if a group is new or hasn't been used for more than three hours, bots are created before runs start and creating one can take more than 10 minutes, and groups without a committed bot that haven't run flows in 28 days are deleted and have to be recreated with their cloud flow connections reconfigured. A monthly process on a hosted machine group needs a plan for that last one.
The hosted options remove the hardware, not the work. Somebody still owns the image, the applications installed on it, the credentials the robot uses, and the monitoring.
Where RPA breaks
The screen changes. A desktop flow finds controls through UI elements and selectors: captured descriptions of the windows, buttons, and fields it works with. Microsoft's documentation recommends UIA selectors for modern Windows apps, MSAA for legacy apps such as VB6 or classic Win32, and UIA3 Raw for controls standard UIA can't identify reliably. It also recommends text-based selectors where an element has stable text, because they are "more reliable and resilient to possible future changes," and adding fallback selectors that Power Automate tries in order when one fails. Even done well, a vendor update that renames a field or reorders a screen can break a flow. Done badly, a window resize can.
The data isn't what the robot expected. A missing value, an extra column, a pop-up the builder never saw. People handle surprises without noticing them. A robot needs each one designed for.
The environment drifts. A Windows update, a new browser version, a changed password, an expired certificate, a different screen resolution on the unattended session. None of these touch the flow, and any of them can stop it.
It fails quietly. Microsoft's documentation is plain on the default: "By default, desktop flows stop their execution when an error occurs." A stopped flow doesn't call anyone. If nobody is watching the run history, the first person to notice is the one whose invoices didn't get entered.
It needs an owner who never leaves. A desktop flow encodes knowledge about a screen that usually lives in one person's head. When that person moves on, the flow becomes the kind of orphan our app rescue work exists for.
What running RPA properly looks like
Design for errors from the first version. Power Automate for desktop gives you the tools. At the action level, you can retry an action a set number of times, continue the run by going to the next action, repeating the action, or jumping to a label, and set variables or run a subflow when an error occurs. The On block error action applies a common error policy to a group of actions, and can retry the whole block. The Get last error action captures what failed so the flow can log it and report it. Microsoft also documents an AI-powered self-healing option, in preview, that applies only to "Element not found" errors in specific UI and browser actions. Treat preview features as useful, not as your safety net.
Log enough to diagnose a failure without rerunning it. Microsoft's monitoring guidance recommends action logs version 2, which uses elastic tables and supports near real-time updates, plus the Log message action to write your own Info, Warning, and Error messages into the run details. Log the inputs, the key intermediate results, and the error when it happens.
Watch the estate, not just the flow. The automation center in Power Automate gives an environment-level view of cloud and desktop flow runs, errors, machines, and work queues, with run data organized by top-level flow so a parent failure is visible even when child runs succeed. Two prerequisites matter for planning: only runs for solution-based cloud flows appear there, and seeing flows and their run history requires being the owner of the flows (co-ownership isn't enough) or having environment-wide access to the data. Its Recommendations section requires a Managed Environment, and work queue data requires a Power Automate Premium license. At tenant level, the Monitor page in the Power Platform admin center highlights resources with degraded operational health. Our Managed Environments post covers what that governance layer brings and what it costs.
Put desktop flows in solutions and run them through ALM. A robot that runs a business process deserves development, test, and production environments and a repeatable deployment, the same as an app. Our ALM guide for small IT teams is the short version.
Use service accounts deliberately. Unattended flows sign in as the account on their connection. Give that account only the access the process needs, store credentials properly, and decide who is allowed to change them.
Name a business owner and a support owner. The business owner decides whether the process still needs a robot. The support owner gets the alert when it stops. If either name is missing, the flow isn't ready for production.
Where AI fits: computer use
The question in 2026 is no longer only "RPA or API." Microsoft Copilot Studio now offers computer use, a tool that lets an agent operate websites and desktop apps on a Windows machine through a virtual mouse and keyboard, from a task described in natural language. Microsoft's documentation says that because it's AI-powered, "it adapts to interface changes," continuing to work when buttons or screens change.
That addresses the exact weakness of selector-based RPA, and it's worth testing for processes where screens change often. Before you plan around it, read the same documentation's operating notes:
- Cost scales with steps. Usage is billed through Copilot Credits per step, and premium models cost more per step than standard ones. A long, repetitive process can cost more per run than a desktop flow with fixed licensing. Check current terms at decision time.
- Guardrails need setting up. Microsoft's documentation says access control "only prevents the model from taking actions on websites or applications that aren't in the allow list. It doesn't stop the model from opening them." It recommends dedicated machines, least-privilege accounts, allow-listed sites, and restricted installed apps.
- Shared agents carry the author's access. With maker-provided credentials, "anyone using it can act with the original author's access on the configured machine."
- Stored sign-ins don't work everywhere. The documentation says password fields are supported on websites and most Windows applications, but that some app types, such as Electron, Java, Unity, games, command-line interfaces, Citrix, or other virtualized environments, might not be supported.
Our working view: deterministic desktop flows still suit high-volume, stable, rule-based work where you want the same steps every time at a predictable cost. Computer use is worth piloting where the screens change too often for selectors to keep up, or where the task needs judgment that's hard to script. Either way, the connector-first order doesn't change. An AI clicking a screen is still clicking a screen. Our Copilot Studio vs Azure AI Foundry post covers where Copilot Studio agents fit more broadly, and the AI agents page covers how we approach them.
Decide per process: the test
Answer these questions for each candidate process before anyone opens a recorder.
- Is there a connector, a custom connector option, or an API? Check the connector list, ask the vendor, and ask whether a developer could build a custom connector. If any answer is yes, start there.
- How stable is the interface? Ask how often the system's screens change and whether its owner announces changes. Frequent, unannounced changes point away from selector-based RPA.
- How stable is the process? If the steps or the inputs vary from case to case, fix the process first or consider whether the judgment calls belong with a person.
- Attended or unattended? If a person starts the work and watches it, attended may do. If it has to run on a schedule with nobody present, plan for unattended machines, the Process or Hosted Process license, and the session rules above.
- What happens when it fails? Describe the alert, who receives it, and the manual fallback. If you can't, the design isn't finished.
- What retires it? Name the event that would make the flow unnecessary, such as an API, an upgrade, or a replacement system, and who will watch for it.
| Situation | Our default | Why |
|---|---|---|
| A connector or API exists for the system | Cloud flow with connectors | Microsoft's guidance ranks it first; it isn't affected by screen changes |
| No connector, but a developer can build one against an API | Custom connector | Resilient to UI changes; one integration many flows can use |
| Legacy desktop client, no API, stable screens, steady volume | Desktop flow, unattended if it runs on a schedule | The case RPA exists for |
| A person starts the task and watches it | Attended desktop flow | Runs on their signed-in machine under Premium |
| Screens change often and judgment is needed | Pilot computer use, with guardrails | Adapts to UI changes; cost and access need controls |
| Process varies case to case or is disputed | Fix the process first | A robot repeats confusion faster |
| System retires within months | Desktop flow as a bridge, or manual | Weigh build effort against the remaining life |
A fictional example
Contoso, a fictional distributor, has a finance clerk who retypes supplier invoice details from email attachments into an older desktop accounting client every morning. The client has no API and the vendor has no plans for one. The invoices arrive in a few predictable formats.
A sensible design: a cloud flow picks up new invoices from the shared mailbox, extracts the fields, routes exceptions to a person, and calls an unattended desktop flow to enter the approved invoices into the client. The desktop flow logs every invoice it enters and every one it can't, and the cloud flow posts a daily summary to the finance team. The design names the clerk's manager as business owner, IT as support owner, and the accounting system's planned replacement as the retirement trigger.
Change one fact, such as the vendor announcing an API in the next release, and the same questions point to waiting for it and building a custom connector instead. That is the point of asking them per process.
Common traps
Building the robot before looking for the API. Check connectors, the vendor's integration options, and whether a custom connector is possible. It takes an afternoon and can save years of maintenance.
Testing on a laptop and deploying unattended. A flow that works with you watching can fail on an unattended session with a different resolution, no signed-in user, and a different account. Test it the way it will run.
Leaving a user signed in on the robot's machine. On Windows 10 and Windows 11, any active session, even a locked one, blocks unattended runs.
No error handling and no alerts. The default is to stop. Design what happens next.
One person's flow, in one person's environment. Put it in a solution, in a governed environment, with a named owner and a support owner.
Counting only the build. Licensing, machines or hosted capacity, monitoring, and the fixes after every application update are part of the cost. Count them over the life of the flow.
Treating AI as a reason to skip the order. Computer use changes how well screen automation copes with change. It doesn't change the fact that an API is more reliable than a screen.
Where this lands
RPA in Power Automate is worth having in your toolkit and worth using sparingly. Use connectors and APIs wherever they exist. Use desktop flows for the systems that leave you no other way in, with error handling, logging, monitoring, and owners designed in from the first version. Pilot computer use where screens change too often for selectors, with the guardrails Microsoft documents. And keep a list of every robot you run and what would let you retire it. Our Power Automate work starts from that order, and a governance assessment is often where we find the desktop flows nobody remembers building.
FAQs
Is RPA in Power Automate the same as Power Automate for desktop?
Power Automate for desktop is the application you use to build desktop flows, which are Power Automate's RPA. Cloud flows handle connectors and APIs; desktop flows automate the user interface of Windows apps and websites. Many production automations use both.
Do we need a separate license for RPA?
It depends on the mode. Microsoft's licensing page says Power Automate Premium includes attended desktop flows on a registered machine. Unattended desktop flows need the Process plan, and hosted machine groups need the Hosted Process license. Check current terms at decision time.
Can an unattended flow run on someone's everyday PC?
Not reliably. On Windows 10 and Windows 11, an active Windows session, even a locked one, prevents unattended runs, and signing in during a run isn't supported. Use a dedicated machine or Microsoft's hosted options.
How do we stop a desktop flow from failing silently?
Add error handling with retries and On block error, capture failures with Get last error, log with action logs version 2 and Log message, and route failures to a named support owner. Use the automation center and the admin center's Monitor page to watch the estate.
Will Copilot Studio's computer use replace desktop flows?
For some processes it may, particularly where screens change often. Microsoft's documentation says it adapts to interface changes, but it is billed per step and needs guardrails on machines, accounts, and allowed apps. For high-volume, stable work, a deterministic desktop flow is often still the better fit.
Can you help us decide which processes to automate, or only build?
Both. We'll tell you when a connector, a custom connector, or a process fix beats a robot, and build the desktop flows that are worth having with monitoring and owners in place. Our managed support keeps them running after go-live.
Sources
Microsoft's own documentation for the platform, licensing, and product facts above. Licensing and product terms change; check current terms at decision time.
- Determining which automation method to use: the connector-first order and the table marking UI automation as easily affected by system changes.
- Flowchart to help you decide how to design your automation: connectors, then custom connectors, then desktop flows.
- Run unattended desktop flows: the Process plan, remote desktop sessions, signed-out machines, no elevated privileges, and screen resolution.
- Prerequisites and limitations for desktop flows: supported Windows versions, ARM and Windows Home limits, and the Dataverse requirement.
- Types of Power Automate licenses: attended bot in Premium, unattended bots in Process and Hosted Process, one flow at a time per Process license.
- Introduction to Power Automate hosted RPA: hosted machines and hosted machine groups on Microsoft-managed infrastructure.
- Hosted machine groups: Hosted Process sizing, unattended-only runs, provisioning time, and the inactivity cleanup.
- Automate using UI elements: selectors, UIA, MSAA, UIA3 Raw, text-based and fallback selectors.
- Handle errors in desktop flows: the stop-on-error default, retries, On block error, Get last error, and self-healing in preview.
- Monitor and troubleshoot automation processes: action logs version 2, Log message, the automation center, and the admin center's Monitor page.
- Explore Power Automate's automation center: run monitoring, work queues, recommendations, and their prerequisites.
- Overview of process mining in Power Automate: using event data from systems of record to find automation opportunities.
- Automate web and desktop apps with computer use: how computer use works, per-step billing, access control, credential sharing, and which app types support stored sign-ins.