Skills Development Salesforce Development Practices

Salesforce Development Practices

v20260317
salesforce-development
Guides Salesforce engineers through using the @wire decorator for reactive Lightning Data Service or Apex bindings, bulkified Apex triggers, Queueable async jobs, and anti-pattern avoidance to keep LWC performance optimized and compliant with governor limits.
Get Skill
229 downloads
Overview

Salesforce Development

Patterns

Lightning Web Component with Wire Service

Use @wire decorator for reactive data binding with Lightning Data Service or Apex methods. @wire fits LWC's reactive architecture and enables Salesforce performance optimizations.

Bulkified Apex Trigger with Handler Pattern

Apex triggers must be bulkified to handle 200+ records per transaction. Use handler pattern for separation of concerns, testability, and recursion prevention.

Queueable Apex for Async Processing

Use Queueable Apex for async processing with support for non-primitive types, monitoring via AsyncApexJob, and job chaining. Limit: 50 jobs per transaction, 1 child job when chaining.

Anti-Patterns

❌ SOQL Inside Loops

❌ DML Inside Loops

❌ Hardcoding IDs

⚠️ Sharp Edges

Issue Severity Solution
Issue critical See docs
Issue high See docs
Issue medium See docs
Issue high See docs
Issue critical See docs
Issue high See docs
Issue high See docs
Issue critical See docs

When to Use

This skill is applicable to execute the workflow or actions described in the overview.

Info
Category Development
Name salesforce-development
Version v20260317
Size 1.51KB
Updated At 2026-03-21
Language