Salesforce Platform Foundations
Why This Matters
If a user asks “how do I do X in Salesforce,” the answer quality depends on understanding what Salesforce is:
- a multi-tenant cloud platform,
- with metadata-driven configuration,
- strict runtime limits and security evaluation, and
- multiple product clouds sharing one platform model.
Without this foundation, recommendations drift into generic CRM advice and miss platform constraints.
What Salesforce Is
Salesforce is a cloud application platform where business applications (Sales, Service, custom apps, Experience Cloud portals, etc.) are built using a shared runtime and data model.
Core platform traits:
- Multi-tenant: many customer orgs share platform infrastructure.
- Metadata-driven: object schema, automation, UI, and security are expressed as metadata.
- API-first: platform services are exposed via REST, SOAP, UI API, GraphQL, Metadata/Tooling APIs.
- Config + code: declarative tools (Flow, validation rules, layouts) and programmatic tools (Apex, LWC) coexist.
Platform Mental Model
Layer 1: Data and Metadata
- Data: records (Accounts, Contacts, custom object rows).
- Metadata: definitions of objects/fields/layouts/automation/security.
Metadata controls how data is stored, displayed, and processed.
Layer 2: Execution Runtime
Transactions execute with platform-enforced limits and order-of-execution behavior.
Key constraints:
- governor limits (SOQL, DML, CPU, heap, callouts),
- transaction boundaries,
- sharing/security enforcement,
- synchronous vs asynchronous execution tradeoffs.
Layer 3: Experience and API Surfaces
Users and systems interact through:
- Lightning UI,
- Experience Cloud,
- mobile,
- APIs/integration middleware,
- events/streaming surfaces.
Declarative vs Programmatic (Design Decision)
Choose declarative first when requirements are transparent and maintainable in config.
Escalate to code when you need:
- complex branching/business logic,
- strong performance tuning,
- advanced error handling/retries,
- complex integrations.
The platform works best when these two modes are intentionally composed, not treated as competing camps.
Security Evaluation Model (High Level)
Access to data is the intersection of:
- Object-level access (profiles/permission sets),
- Field-level access (FLS),
- Record-level access (OWD, role hierarchy, sharing rules, manual/apex sharing),
- Execution context (user mode/system mode patterns).
Any architecture recommendation that ignores this evaluation chain is incomplete.
Core Product Clouds and Platform Fit
- Sales Cloud: sales pipeline CRM workflows.
- Service Cloud: case/service operations.
- Experience Cloud: external user/portal scenarios.
- Data Cloud: harmonized data + identity resolution for analytics/activation.
- Platform-only apps: custom applications without full Sales/Service object dependence.
Most enterprise orgs combine these with integration and identity layers.
AI/RAG-Specific Platform Guidance
When building Salesforce RAG/agent systems:
- treat security evaluation as part of retrieval design,
- preserve object/field/record provenance in chunk metadata,
- choose extraction paths by freshness + volume (REST vs Bulk vs CDC),
- refuse unsupported claims when evidence is weak,
- keep terminology mapping explicit (acronyms and synonyms).
Common Misconceptions
- “Salesforce is just CRM.” -> It is a full metadata platform with CRM products on top.
- “Everything should be Flow.” -> Some requirements need code for correctness/performance.
- “System mode fixes access issues.” -> It can bypass intended controls and create governance risk.
- “API integration is only endpoint wiring.” -> Auth, limits, idempotency, and observability are first-class concerns.
Q&A
Q: What is the single most important Salesforce architectural concept?
A: Salesforce is metadata-driven. If you understand that metadata defines behavior across UI, automation, security, and API behavior, most architecture decisions become clearer.
Q: Why do governor limits matter so much?
A: Limits are platform safety constraints in a multi-tenant runtime. They shape design patterns for queries, DML, async orchestration, and retry behavior.
Q: Is Salesforce mainly declarative or programmatic?
A: Both. High-quality implementations use declarative tools where sustainable and code where complexity/performance/integration demands it.
Q: How should AI systems describe Salesforce safely?
A: Start from platform primitives (metadata, limits, sharing model), cite evidence, and avoid generic CRM claims that ignore Salesforce-specific constraints.
Sources Used
- Salesforce Platform and architecture documentation (official developer docs)
- Salesforce API and metadata documentation (official)
- Repository patterns in
rag/development,rag/security,rag/integrations, andrag/data-modeling