using-webapp-salesforce-data
Installation
SKILL.md
Salesforce Data Access
When to Use
Use this skill when the user wants to:
- Fetch or display Salesforce data — Query records (Account, Contact, Opportunity, custom objects) to show in a component
- Create, update, or delete records — Perform mutations on Salesforce data
- Add data fetching to a component — Wire up a React component to Salesforce data
- Call REST APIs — Use Connect REST, Apex REST, or UI API endpoints
- Explore the org schema — Discover available objects, fields, or relationships
Data SDK Requirement
All Salesforce data access MUST use the Data SDK (
@salesforce/sdk-data). The SDK handles authentication, CSRF, and base URL resolution. Never usefetch()oraxiosdirectly.
import { createDataSDK, gql } from "@salesforce/sdk-data";