Access Record Data with Data SDK (Beta)
While Agentforce Vibes automatically generates code for data access, it’s helpful to understand how you can write your own code to access Salesforce data from your React web app via Data SDK.
Data SDK provides several advantages for data access, including environment adaptability and type safety.
- Abstraction and consistency: Data SDK abstracts environment-specific APIs, so you call a simple method and the SDK handles the implementation details for the specific host environment, for example, Lightning Experience or an Experience Builder site.
- Capability detection: Data SDK includes integrated capability detection to identify the runtime environment, infer its capabilities, and determine the concrete way to implement those capabilities. Given the built-in detection, component authors can code safely across deployment scenarios.
- Modern developer experience: Data SDK provides full TypeScript definitions to offer IntelliSense and autocomplete functionality, compile-time type safety, and uses Promises for structured error handling (try/catch blocks) instead of loosely-typed events.
Learn how you can access and update Salesforce data from your web app.