Skip to content

Dataverse Plugins vs Power Automate

On my last Dataverse project I built a lot of Power Automate flows. They were quick to get going, so I kept adding them.

Then it started to become too complex.

I rewrote the logic as a couple of Dataverse plugins with AI. The result was simpler, more readable, faster and more stable. Eight flows went in the bin.

What bothered me afterwards was why I had built the flows in the first place. Not one of them was there because a flow fit the problem better. They were there because a flow was easier to build than a plugin.

AI took that argument away. With it gone, the choice between a plugin and a flow, a form script and a business rule, a custom control and the standard one, comes down to fit. And for most of what I build, fit favours code.

Why we picked low-code in the first place

The guidance is consistent.

The Microsoft Learn page on plug-ins opens with a tip: “Whenever possible, first consider applying one of the several declarative options to define business logic.” Further down it lists the disadvantages. The first one: “Plug-ins require the special skills of a software developer to create and maintain the plug-in code.”

The page on client scripting says the same about forms: “don’t use client scripting as your first choice”. Business rules come first, because they let “someone who doesn’t know JavaScript and isn’t a developer” apply the logic.

The Field Service guidance is the bluntest: “Avoid writing scripts when possible. Try using platform options like Power Automate and workflows first.”

Every one of those reasons is about the developer. A developer is scarce and expensive, so build it in a way that doesn’t need one.

That was fair advice when a plugin cost a developer’s week.

It isn’t the situation I work in anymore.

What changed with Dataverse plugins

The flows I replaced handled order lines and the tax on them. Eight async flows became two synchronous plugins.

The difference shows when something fails.

An async flow that fails on a price leaves an order that looks complete and is quietly wrong. Nobody sees it until the invoice is off. A synchronous plugin that fails rolls back the save, and the user gets an error on the spot.

The plan for the rewrite had a line for that trade I keep coming back to: “An order nobody can save is a worse afternoon; an order that is silently under-billed is a worse year.”

I’ll take the afternoon.

Code isn’t free. A plugin needs a build and a deployment pipeline, which flows let you skip. That gap is why I built Flowline: one push builds the plugin and registers its steps, with no Plugin Registration Tool in between.

The fair question is who maintains this when the customer has no developer. Eight flows were never readable for that customer either. Two plugins in source control, with tests, are easier to follow. And the agent that wrote them will explain them to whoever picks them up next.

Business rules vs JavaScript

On forms, the path everyone knows goes like this. You start with business rules. When they become too complex, or the thing you need isn’t possible with them, you switch everything to JavaScript.

The switch is the expensive part. You build the same form logic twice, once in the designer and once in script.

And business rules hit walls early. They are very limited. They live in a designer, so a pull request shows you XAML, not logic.

Now the agent writes the form script in a blink. JavaScript, in source control, diffable and reviewable like everything else.

So I don’t see a reason to start with business rules anymore. If I’m going to end up in JavaScript the moment the requirement grows, I’d rather start there.

PCF controls are a prompt now

Custom UI had a different barrier.

To get a PCF control working you needed to know web programming, React in practice, and then you still had to get the design right. Two skills most Dataverse people don’t have.

So the default answer to “can this field look or behave differently” was no. Live with the standard control.

Now it’s a prompt. pac pcf init --framework react scaffolds the control, and the agent writes the rest, the styling included.

Microsoft went the same way for generative pages, which are TypeScript and React underneath. Its documentation calls building them with AI code generation tools, such as GitHub Copilot CLI, “the recommended path”.

What I still build as a flow

None of this makes flows wrong. It makes them one option among several, picked for what they’re good at.

I still use a flow for async integration, notifications, approvals and anything that chains connectors together. Microsoft’s guidance puts it the same way: Power Automate for “complex sequences of actions involving multiple connectors”. The same project still runs flows for exactly that, and they belong there.

What I stopped doing is reaching for a flow because it’s easier to start. Money, validation and anything that must be all or nothing go in a synchronous plugin. Form logic starts in JavaScript. UI the standard controls can’t do becomes a PCF control.

Microsoft’s own low-code answer to plugins, Power Fx low-code plug-ins, is still in preview. The instant variant was deprioritized and replaced by Dataverse functions, also in preview. The code route got cheap faster than the low-code route got finished.

Easier was never a design reason. It was a staffing reason, and the staffing changed.

Earns Its Keep

Every Sunday, one post on Dataverse, .NET, and whether the tools we rely on still deserve to be there.