Tag
#Best Practices
The Apex == Trap That Breaks Map and Set Lookups
Apex's equality operator does field-by-field comparison on SObjects — except when it doesn't. The four cases that produce wrong Map and Set hits.
GlideAggregate Count: Real Query Cost in 2026
GlideAggregate.getRowCount() vs GlideRecord.getRowCount() — when each is faster, with benchmark numbers from a 50M-row table.
Custom Metadata vs Custom Settings: The Decision Guide
Clear criteria for choosing between Custom Metadata Types and Custom Settings — packaging, performance, and DX tradeoffs.
Instance Clone Data Preservation: The Rules You Will Forget
An instance clone wipes the wrong table once and the team rebuilds two weeks of work. Here is the preservation rule cookbook.
Flow Fault Handling: 6 Patterns You Actually Need
Six production-grade fault-handling patterns for Salesforce flows — what to catch, how to log it, and how to surface errors to users.
Subflow Patterns: Reusable Logic That Actually Scales
Real patterns for designing Salesforce subflows that stay maintainable as the number of callers grows — inputs, versioning, and traps to avoid.
CRM Implementation Best Practices for 2026
The phases, the people, the pitfalls — a practical implementation playbook that survives contact with reality.
Agentforce Actions: Design Patterns That Don't Break
Principles and concrete patterns for designing Agentforce actions that the agent calls correctly and that don't fail in production.
Validation Rules Worth Writing (And Ones That Aren't)
The validation rules that catch real bugs, the ones that just annoy users, and the patterns that make rules maintainable.
Before-Save vs After-Save Flows: Pick the Right One
The practical differences between before-save and after-save record-triggered flows, with a decision checklist and common traps.
Flow Entry Criteria Best Practices
How to set entry criteria on record-triggered flows to skip unnecessary executions, improve performance, and avoid hidden bugs.