AI
AI Speeds Up Salesforce Delivery. Your Team Makes It Sustainable.
I was recently studying Salesforce Revenue Cloud setup to see exactly how much AI could accelerate the build

I was recently studying Salesforce Revenue Cloud setup to see exactly how much AI could accelerate the build. Within minutes, I had generated 15 new Price Rules. On the surface, they all "worked" perfectly.
Then I hit "Save" on a quote.
The loading spinner ran for nearly a minute. It was a wake-up call: AI is a technical debt factory if you don't have a senior architect sitting in the driver's seat.
Right now, in 2026, we are operating in a strange tension between pride and responsibility. We feel pride because AI helps our teams deliver at a pace we couldn't imagine two years ago. But we also feel a growing responsibility, because that same speed is burying hidden costs.
This isn't just a theory; it's a pattern emerging in the data. AI makes it easier to ship, but it doesn't make systems easier to maintain. In fact, it might be doing the opposite.
Sonar's 2026 developer survey shows a clear contrast: 70% of developers say AI has a positive impact on time-to-market, but only 47% say AI has a positive impact on reducing technical debt. Salesforce research also shows that delivery pressure continues to grow: project demand is up 18% year-over-year, and 38% of applications already leverage AI.
So the question is not "Will we use AI in Salesforce?"
We already are. The real question is: Will our teams be prepared to use AI in a way that strengthens the platform, not only accelerates delivery?
Why AI can create tech debt (even when it "works")
AI is very good at producing code and configuration that looks correct. The limitation is that it often misses deeper architectural decisions such as data model consistency, sharing and security patterns, reuse strategy, performance behaviour, and long-term ownership.
Look at this example:
public static Decimal calculateDiscount(Id quoteId) {
List<QuoteLineItem> lines = [
SELECT Quantity, UnitPrice, Product2.Family
FROM QuoteLineItem
WHERE QuoteId = :quoteId
];
Decimal discount = 0;
for (QuoteLineItem l : lines) {
if (l.Product2.Family == 'Hardware' && l.Quantity > 10) {
discount += l.UnitPrice * 0.05;
}
}
return discount;
}
Why it works
- Produces the right number
- Very easy to plug into a CPQ plugin or Flow
Why it still needs a stronger team design
- No isolation of pricing logic
- No reuse strategy
- No extensibility
- No guard for multiple calls during the same calculation cycle
In real CPQ environments, this usually becomes: repeated queries during recalculation, slower quote performance, multiple similar implementations for bundles, renewals, and amendments. It creates pricing debt, not only code debt.
The important point is not that AI created something wrong. The point is that without clear architecture and review practices, AI cannot decide how pricing logic should evolve across the platform.
In the same Sonar research, developers highlight a new reality: review and validation become the most important skill in an AI-assisted world (47%).
Sonar's analysis also points to a common problem: code and configuration that looks correct, but does not follow the intended design of the system. This becomes even more important in Salesforce, because Salesforce is not only code. It is also:
- Flows, approvals, validation rules and assignment rules
- Managed packages and version upgrades
- Permission sets, sharing and data access patterns
- Integrations (APIs, middleware, events)
- Declarative and programmatic logic combined
AI can generate something for every layer. But only well-aligned teams can make sure those layers evolve in a consistent way.
The Salesforce-specific challenge: complexity across clouds
In Salesforce ecosystems, technical debt is not only an engineering concern. It quickly becomes business friction.
CPQ and Revenue Cloud — fast fixes become pricing debt
CPQ is a perfect example because it mixes business rules and technical configuration:
- Product rules, price rules and constraints
- Quote calculation logic
- Custom scripts, QCPs and Apex plugins
- Bundle structures and catalog governance
AI can quickly suggest a new rule or formula. When this is not aligned with the existing pricing architecture, teams start to accumulate overlapping rules, performance issues during calculation, fragile edge cases (currency, proration, renewals, amendments), and hidden downstream impacts on billing and order management.
The quote still works today. But the platform becomes harder to evolve tomorrow. Strong pricing and catalog ownership inside the team is what prevents this.
Service Cloud — automation everywhere becomes operational debt
Service Cloud teams will increasingly use AI to generate triage flows, macros and templates, agent and bot automations, routing logic and entitlement variations, knowledge drafts, and chat responses.
This brings immediate productivity gains for agents and support teams.
At the same time, it increases the volume of automation that must be tested, governed, and maintained.
And Service Cloud debt is expensive because it directly impacts customer experience. Sonar's survey shows that, even with AI, only 47% of developers report a positive impact on end-user experience.
This is a strong signal: automation alone is not enough. Reliability, consistency and ownership still depend on how teams design and review what is produced.
The hidden accelerator: data and integration gaps
In 2026, Salesforce AI features — and AI agents built around Salesforce — will be limited by data readiness.
Salesforce's connectivity research shows that 95% of IT leaders struggle to integrate data across systems, and only 29% of applications are typically connected.
When data is fragmented, teams compensate by building custom objects, duplicate fields, background synchronizations, and one-off integrations.
AI makes these workarounds faster to build. But only strong data and integration governance makes them sustainable.
When trusted data foundations are not addressed, AI initiatives often add more layers instead of fixing the root causes. This is why Salesforce research also shows that 86% of IT leaders consider trusted data critical.
Tech debt is already a budget problem — AI simply changes the speed
Even without AI, technical debt already consumes a significant part of IT budgets:
- McKinsey reports that 10–20% of technology budgets for new products are diverted to resolving technical debt, and that technical debt can represent 20–40% of the value of a technology estate.
- Protiviti shows that organizations spend around 30% of IT budgets and about 20% of IT capacity managing technical debt.
- Gartner warns that unmanaged GenAI technical debt will drive higher maintenance and upgrade costs in the coming years.
In a Salesforce context, faster creation of Flows, Apex, integrations and permission structures — without stronger governance — simply increases the slope of that curve.
With the right teams and practices, however, AI can also help reduce repetitive work and free senior engineers to focus on architecture and platform health.
What this looks like in real Salesforce teams in 2026
Here are common patterns teams will see more often:
Flow sprawl — Many similar flows created quickly with AI, each slightly different, without a shared subflow strategy.
Apex islands — Small Apex classes solving one scenario, without common selectors, service layers, sharing models or testing strategy.
Permission debt — Fast fixes that bypass a clean permission-set strategy, making audits and reviews harder later.
CPQ rule duplication — Rules created for individual exceptions instead of improving the underlying product model.
Integration patches — Point-to-point integrations multiplying because it was fast to generate another endpoint.
These patterns are not failures of AI. They are signals that teams need clearer design ownership and reuse practices.
How to get AI speed while strengthening your Salesforce platform
The practical mindset is simple: AI should increase delivery speed and, at the same time, raise the importance of strong engineering practices.
What works well in Salesforce organizations:
Define "golden paths" for common patterns — A standard approach for case creation, pricing extensions, integrations, error handling, logging and retries.
Treat AI output as a starting point, not a final answer — Review AI-generated work with the same discipline as human-written work.
Invest in automated checks — Static analysis for Apex, security scanning, regression testing for CPQ calculations and critical service flows.
Build a strong reuse culture — Shared subflows, shared Apex services, shared DTOs and validation utilities.
Measure platform health, not only delivery speed — Alongside story throughput, track indicators such as flow count growth, rule duplication, production incidents, time to diagnose failures, rollback rate, and test quality on business-critical processes.
Final thought
In 2026, AI will not automatically reduce Salesforce technical debt. But it also does not have to increase it.
The teams that will succeed are the ones that treat AI like a very fast new team member: highly productive, but guided by clear standards, strong architecture, shared ownership and continuous review. With the right team structure and leadership, AI becomes a powerful accelerator — not a source of long-term platform risk. And that is how organizations get the best of both worlds: faster delivery and a Salesforce ecosystem that stays healthy and ready for change.
By the way, here is how I would write the code above that AI created:
public static Map<Id, Decimal> calculateDiscounts(Set<Id> quoteIds) {
Map<Id, Decimal> discountsByQuote = new Map<Id, Decimal>();
if (quoteIds == null || quoteIds.isEmpty()) {
return discountsByQuote;
}
for (Id idValue : quoteIds) {
discountsByQuote.put(idValue, 0);
}
List<QuoteLineItem> lines = quoteLineItemSelector.selectByQuoteIds(quoteIds);
for (QuoteLineItem line : lines) {
if (line.Product2.Family == FAMILY_HARDWARE && line.Quantity > QUANTITY_THRESHOLD) {
Decimal ruleDiscount = line.Quantity * DISCOUNT_FACTOR;
discountsByQuote.put(line.QuoteId, ruleDiscount);
}
}
return discountsByQuote;
}
Why this version pays down tech debt instead of creating it:
- Bulkification: By using
Set<Id>andMap, this code is "Trigger-ready." It won't crash your Org when you try to update 200 quotes at once. - Separation of Concerns: Using a Selector class means if your data model changes, you only fix it in one place, not in fifty different AI-generated snippets.
- Constants over "Magic Values": Replacing
'Hardware'withFAMILY_HARDWAREprevents typos and makes the logic easier to update across the entire system.
This isn't just about "better code." It's about building a system that can actually scale. True architecture is about knowing when a simple Apex class is enough and when you need a full Service Layer pattern.
References
- Sonar 2026 State of Code Developer Survey report (PDF): https://www.sonarsource.com/state-of-code-developer-survey-report.pdf
- Protiviti: https://www.protiviti.com/us-en/global-technology-executive-survey-tech-debt-major-burden