Most large orgs have a config versus code decision that was never made. It was made a few hundred times instead, once per feature, by whoever was closest to the ticket. The admins built in the declarative tools because that was what they had. The developers wrote code because that was what they had. Both were right on the day, and the org that resulted is the sum of a few hundred locally correct answers that nobody can read end to end.
The pitch for low-code is familiar. It is faster to build and it needs cheaper skills. Both claims are true, and they usually reach the boardroom inside a partner’s statement of work, where a low-code build quotes well against custom development. The partner prices the build it was asked to quote, the vendor’s material says “clicks, not code”, and the board approves the number in front of it. That number is written for the day you build the rule. Nothing in it is priced for the five years you spend changing it.
Both sides of this argument are right about something, which is why it never gets settled. The declarative side deserves a proper hearing first, because, to some extent, the argument does hold.
The case for declarative
Out of the box is what the platform ships: its case management, service-level timers, work routing, sales pipeline and the myriad of other capabilities provided. Using them as designed, instead of rebuilding them, is always my first choice in any org. Everything built on top of them is customisation, and it comes in two forms. Declarative customisation is built with clicks in the platform’s own tools (in Salesforce, usually Flows). Code is written by developers and the real argument is between those two.
Out of the box has a trap of its own. A standard feature bent around the last 20% of a process is customisation too, and it can end up harder to change than a clean build would have been.
Declarative earns its place. It reaches a first working version sooner, and admins usually sit closer to the business than developers do. I have seen a good one turn a conversation into a working rule in an afternoon. One automation built visually is also easier for a non-developer to follow than a class, and the vendor’s own guidance leans on that. A small org with one admin and no budget for developers should build declaratively and accept the costs that follow, because the alternative is nothing at all.
The vendor is pulling the same way. Its investment goes into the declarative Flow builder first, and it has retired its older automation tools in favour of that one builder. Support for the old tools ended with 2025. The rules still run, but nobody fixes them when they break, and the orgs that built hundreds of them now carry the migration bill.
The strongest point on this side is that code is not automatically readable. A trigger framework that only one developer understands, or a class nobody has opened since 2019, carries the same key-person risk as a sprawling Flow. Code has a diff, and nothing guarantees that anyone can read it.
Every one of these arguments is about building a rule, or about one rule on its own. In a large enterprise, what decides it is changing one rule among hundreds.
The cost of change
In a ten-person org a bad change is an afternoon. In a large enterprise with hundreds of automations on one object, it is an incident with a bridge call.
Declarative customisation is often sold as faster to change as well, and in an ungoverned org it is. In an enterprise, a declarative change goes through the same sandboxes, pipeline and change board as code, so the speed advantage ends once the rule is built. What differs is what the reviewer gets to see.
I think of approving a declarative change as approving a change to one road sign from a photo of the sign. You can see the sign. You cannot see the roundabout it sits on, the other signs, or the traffic.
A code change arrives at review as a diff: these lines changed, and here is everything that calls them. A declarative change arrives as a picture of a canvas, and the canvas shows one automation. It does not show the four others that fire on the same object, the order they run in, or what the change will do to the records already there. The reviewer makes a judgement about risk without the information needed to judge it, and the sign-off goes on the record all the same. I have been that reviewer.
The Flow does reach the pull request, as XML. It is a diff in name only: element names, connector references and canvas coordinates that nobody reads line by line. A real review of a Flow means logging into Salesforce and opening it in the builder, which is the photo of the sign again. In code, the same question is one search across the repository.
That cost compounds. Every declarative change makes the next one harder to review, because there is one more thing on the object the photo does not show. After a few years the honest answer to “what happens when this record is saved” is a person clicking through screens for an afternoon. The person who built most of it has usually moved on. None of it has a budget line. It turns up as diagnosis time, key-person risk and a change advisory board that has quietly started saying no to everything on that object.
Volume is the other place the gap shows. In my experience, code is faster than declarative automation once a rule runs across a large batch of records, and it is rarely close. A rule that is fine on one record and slow on a hundred thousand is a cost of change as well. The change that finds out is usually a data migration on a deadline. To be fair, Salesforce has come a long way with Flow performance, particularly for before-save updates. Anyone who maintained Process Builder in its day, when the brochure sold it as the one tool for everything, knows how far it had to come.
Why this needs a decision
Where a business rule lives decides who can change it and what a reviewer gets to see before approving the change, which makes it a governance decision. Left to each team, it gets decided differently every time. One team puts its approval checks in a Flow, the next in a trigger, a third in a validation rule, and when one breaks, nobody knows where to look. For the most part, a default preference goes a long way in fixing that, once it is written down on one page. Where it sits is the org’s call. In the large orgs I have worked in, the default that held up was the one where a change is cheapest to check, validate and maintain.
AI has changed the maths too. The cheap-skills argument for declarative rested on developers being scarce or too expensive, and a coding agent removes that premium from both sides at once. Code is text written to be read line by line. An agent can search every rule that touches an object, read a change as a diff, and loop through change, test, read the failure and fix until the tests pass. A Flow is stored as XML that describes a picture, coordinates and connectors included. An agent can parse it, but reasoning about it is far harder than reading code, and its tests are thin, so an agent changing one is mostly working blind. In my experience agents read, change and review code noticeably better than Flows.
The agent also has no opinion of its own. It builds whichever form the surrounding metadata suggests, and in an org that decided per feature, that means both. AI has removed the argument that was about cost, and made the ones about risk and consistency matter more, because the reviewer is increasingly reading changes an agent wrote.
What the one page says
Down a level, the policy is short, and its first line is out of the box. In Salesforce terms, that means entitlements and milestones instead of a home-made timer for case service levels, and Omni-Channel instead of a home-made assignment engine. Some of those features need declarative work to run. Messaging, for example, is flexible by using an Omni-Channel Flow to route each messaging session to an agent or a queue. That Flow should stay thin. It routes, and once it starts deciding business rules, it calls out to code. A required Flow is still declarative customisation. One with nested decisions and loops is code that admins are licensed to write, and it needs a diff, a test and a reviewer who can see the blast radius. Salesforce’s own decision guide for record-triggered automation recommends the same shape, with Flow orchestrating and invocable Apex doing the heavy lifting.
For everything past out of the box, the Salesforce guide decides object by object. It calls Flow “the ideal choice for most teams” and recommends Apex “for Salesforce objects with high automation density”. It also asks for one entry point per object, which is the decide-once argument at a more granular scale.
Where I part ways with the guide is the unit of decision. Density is a snapshot. An object that is light today gets a Flow, then grows. The guide’s answer is to “consider the potential future scope” when choosing, and to refactor the objects that already mix the two, which is the rewrite nobody funds. A per-object rule also has to be governed. Every new object needs a ruling. Every reviewer and every agent needs to know which regime each object is under, and each ruling sits on the edge of tipping the other way. In an org with an established code framework, I have found one approach across every object easier to run and maintain than a matrix. That approach has been code. The consistency is where the savings sit, because one way of building leaves one way to review, test and maintain.
Density is a snapshot. One approach across every object is easier to run and maintain than a matrix.
That has a cost. A reference object with one default value still gets a handler and a test, although a mature framework makes that small and an agent writes most of it. It also has a precondition. Without an established framework, and the rules and skills that teach an agent to use it, org-wide code is just triggers everywhere. The guide’s object-by-object approach is then the better choice. I am also not sure how long the agent argument lasts. If the vendor makes a Flow as easy for an agent to read as a class, that part of the case weakens. The review argument then carries it alone.
The guide’s case for keeping decision logic in Flow is visibility: it stays “transparent and manageable via the Flow Trigger Explorer” instead of “obscured within code”. That holds while every automation on the object is a Flow, because the explorer lists them in the order they run. Most enterprise objects are roundabouts. The triggers and validation rules on the same object sit outside the explorer, and it shows the order things run in without showing what each one does to the record. With one code entry point per object, a reviewer reads the whole sequence in one place, top to bottom.
The exceptions to the default are the ones the case for declarative earned. A screen Flow whose whole job is a guided interface stays declarative, and nobody should write a controller to replace it. An org with no developers, or a prototype with a quarter to live, has already made the decision. Values that change often live with the people who own them. Take a discount limit the sales team adjusts every fortnight. The rule that applies it lives in code, and the limit lives in a custom metadata record an admin can change without touching the rule.
Who owns the decision
Someone has to write the default down and keep it current. It now gets written twice: once for the people who build, and once as the rules and skills the coding agents load before they touch the org. In my experience the owner is architecture, with the platform standards team as its keeper, because a standard nobody owns stops being followed within a release. The test of whether it works is simple: a new feature gets sorted without a meeting. It is also why, in the large orgs I have worked in, code ended up as the default. “Code, unless it is one of the named exceptions” can be answered in a sentence. A matrix of densities cannot, because every borderline object needs a ruling. If the design review spends twenty minutes arguing where a rule should live, the decision has not really been made.
If you sign off budgets, the questions that matter are ones neither you nor the partner can answer alone:
- What will it cost to change this safely in three years?
- Does it fit the patterns we already build with, or add another way of doing the same thing?
- What else already runs on the records it touches?
- How do we test it the next time it changes?
- Who maintains it once the partner has gone, and can they read it?
Before you sign the next business case that says “low-code”, put it in front of your own architects with that list. The partner knows the platform. Your architects know your org. If the answers come back vague, that is the finding, and it is cheaper to fix now than after the next bridge call.
If you are the architect, write the default down on one page and try it on the next three features. If it settles where each one belongs without a meeting, it works. The decision table that makes it usable by a delivery team day to day, and the pipeline checks that enforce it, are the next post.
The pitch was never wrong about build cost. It just never mentioned that you would be paying for the change.