# What architectural best practices govern the implementation of complex enterprise Sales Cloud transformations?

**Topic:** Sales Cloud · **Difficulty:** Medium · **Tags:** Sales Cloud, Architecture, Best Practices

Read it on the site: https://www.forcechallenges.com/interview-questions/what-architectural-best-practices-govern-the-implementation-of-complex-enterprise-sales-cloud-transformations

## Answer

**Basics:** Large implementations fail from complexity, not missing features. Salesforce Well-Architected frames good solutions as Trusted, Easy and Adaptable. In Sales Cloud this means using standard Lead, Account, Contact, Opportunity, Product and Forecast features before inventing custom ones.

**How it works:** 1) Discovery and process mapping: define lead-to-cash stages, roles and KPIs. 2) Data model: use standard objects, keep record types and page layouts few, plan Person Accounts early (hard to reverse), choose Territory Management if geography or product splits drive access. 3) Security: set restrictive OWD, build the role hierarchy for reporting, use permission sets and permission set groups for access, sharing rules for exceptions. 4) Automation: one record-triggered Flow per object and timing, or an orchestrated pattern; Apex only for what Flow cannot do. 5) Integration: choose API, Platform Events or Change Data Capture by need. 6) Delivery: sandboxes, source control, DevOps Center or CI/CD, unlocked packages, Center of Excellence governance.

**Advanced / deep dive:** Plan for volume: ownership skew (single owner with more than roughly 10,000 records of an object) and parent-child skew (more than about 10,000 children under one parent) cause locking and slow sharing recalculation. Use indexed, selective filters and skinny tables or Big Objects and archiving for large data. Keep triggers to one per object with a handler and framework, bulk-safe and bypassable by custom metadata flags. Choose one org versus multi-org based on data ownership and compliance, not preference. Define a governance rhythm: design authority, naming standards, technical debt backlog, and release notes monitoring because Workflow Rules and Process Builder are retired and Flow is the standard.

**Code / config example:**
```apex
trigger OpportunityTrigger on Opportunity (before insert, before update, after insert, after update) {
    OpportunityTriggerHandler.run(); // single entry point; handler dispatches by Trigger.operationType
}
```

**Hidden gotchas & must-remember points:**
- Person Accounts cannot easily be turned off after enabling.
- Too many record types, layouts and profiles create unmanageable permutations; prefer Dynamic Forms and permission sets.
- Multiple flows plus triggers on the same object create unpredictable order; define one entry point.
- Data skew causes row locks and long sharing recalculations.
- Territory Management and role hierarchies are different tools; do not mix without a design.
- Skipping sandbox and release discipline causes production-only bugs.

**Best practice:** Decide with the sequence standard, declarative, then code, and document architecture decisions with trade-offs.

---
Source: ForceChallenges · last updated 2026-11-02
