S

Salesforce Platform SDK

The client library (@salesforce/platform-sdk) a Multi-Framework React app uses to query and mutate Salesforce records over GraphQL, with no authentication or token management.

What it is

The Salesforce platform SDK is the client library a Multi-Framework React app uses to reach its org. Published as @salesforce/platform-sdk, it queries and mutates records over GraphQL, invokes Apex, and reads user context through the UI APIs — with no authentication or token management required, because the app is running inside the org.

Why it matters

This is what removes the usual cost of a decoupled frontend. Building outside the platform means writing an auth layer, storing credentials, and rebuilding a permission model that already existed. The SDK means none of that gets written, and data access stays governed by Salesforce.

Key components

  • @salesforce/platform-sdk package
  • GraphQL query and mutate for records
  • Apex invocation
  • UI APIs for user context
  • No token management

How it connects

It is the data layer of a UI Bundle. Apex is still the right place for logic that already exists; the SDK calls into it rather than duplicating it in the frontend.

Good to know

It replaced the beta package @salesforce/sdk-data — if you are following an older tutorial, the import will be wrong.

Need Help Implementing This?

We specialize in putting AI and Agentforce to work for Salesforce customers. Let's talk about your use case.

Book Intro Call