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 use fetch() or axios directly.

import { createDataSDK, gql } from "@salesforce/sdk-data";
Related skills

More from forcedotcom/afv-library

Installs
2
GitHub Stars
298
First Seen
Mar 26, 2026