What problem does it solve?
This Skill reduces the complexity and risk of building integrations between Salesforce and external systems by providing actionable Apex patterns, authentication configuration, testing strategies, and retry/error-handling guidance for production use.
Core Features & Use Cases
- Outbound REST & SOAP Callouts: Patterns for deterministic HTTP callouts with Named Credentials, appropriate headers, timeouts, and response handling.
- Authentication & Named Credentials: Guidance for External Credentials, Named Principal vs Per User, OAuth/JWT flows, and migration to External Client Apps.
- Inbound REST Endpoints: Best practices for implementing RestResource endpoints with validation, user-mode queries, and error codes.
- Testing & Resilience: HttpCalloutMock-driven unit tests, multi-endpoint mocking strategies, retry with in-transaction retries or Queueable-based backoff, and error state recording.
- Use Case: Synchronize orders between Salesforce and an external ERP using a Named Credential-backed outbound API with retry logic and test coverage.
Quick Start
Create an Apex outbound REST callout class that uses the Named Credential OrderManagementAPI, includes retry logic for transient failures, and a unit test that uses HttpCalloutMock.