---
schema_version: "1"
id: f18305c9401670c2aff352ebc809e8dda57821fe3b19ae1ec6da3458c06ae012
title: Access Record Data with Data SDK (Beta)
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/salesforcedx/einsteinfordevs/guides/files/reactdev-data-sdk-usage.md
canonical_url: https://developer.salesforce.com/docs/platform/einstein-for-devs/guide/reactdev-data-sdk-usage.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4c786a448401d9842b09d45bd33622ec327d144fb5bcc4e090d5b4c2b3e65493
products:
  - Agentforce Vibes Developer Guide (Deprecated)
  - salesforcedx
---
# 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.

- [Work with Data SDK](https://developer.salesforce.com/docs/platform/einstein-for-devs/guide/reactdev-data-sdk-intro.md)
- [GraphQL Query Parameters](https://developer.salesforce.com/docs/platform/einstein-for-devs/guide/reactdev-data-sdk-query.md)
- [GraphQL Mutate Parameters](https://developer.salesforce.com/docs/platform/einstein-for-devs/guide/reactdev-data-sdk-mutate.md)
- [GraphQL Queries in Data SDK](https://developer.salesforce.com/docs/platform/einstein-for-devs/guide/reactdev-data-sdk-graphql.md)
- [GraphQL Mutations in Data SDK](https://developer.salesforce.com/docs/platform/einstein-for-devs/guide/reactdev-data-sdk-graphql-mutation.md)
- [Error Handling in Data SDK](https://developer.salesforce.com/docs/platform/einstein-for-devs/guide/reactdev-data-sdk-graphql-error.md)
- [Cache Control in Data SDK](https://developer.salesforce.com/docs/platform/einstein-for-devs/guide/reactdev-data-sdk-cache-control.md)
