using-ui-bundle-salesforce-data

Enforce Salesforce Data SDK usage for GraphQL and REST data access in UI bundles.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/cchrisv/professorFlowVisualPicker --skill using-ui-bundle-salesforce-data
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-ui-bundle-salesforce-data
Source: https://github.com/cchrisv/professorFlowVisualPicker/tree/main/.agents/skills/using-ui-bundle-salesforce-data
Command: npx skills add https://github.com/cchrisv/professorFlowVisualPicker --skill using-ui-bundle-salesforce-data

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Salesforce UI bundles often duplicate data-access logic and risk inconsistent authentication handling. This skill enforces the use of the Salesforce Data SDK across uiBundles/*/src to standardize reads, writes, and metadata access, reducing surface-area for misconfigurations.

Core Features & Use Cases

  • Enforces all Salesforce data access to go through the Data SDK (@salesforce/sdk-data) for GraphQL and REST patterns.
  • Guides on safe, scalable data operations in UI bundles, including read, create, update, delete and metadata queries.
  • Use Case: When building a form or screen that talks to Salesforce objects, migrate to the Data SDK to ensure consistent auth, CSRF protection, and URL resolution.

Quick Start

Install the Salesforce Data SDK in your UI bundle and start migrating data access code to use sdk.graphql, sdk.fetch, and related utilities as described in this skill.

Frequently Asked Questions about using-ui-bundle-salesforce-data

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the best way to standardize Salesforce data access in UI bundles?

To standardize Salesforce data access in UI bundles, enforce the Salesforce Data SDK across GraphQL and REST surfaces. This approach ensures consistent authentication, CSRF protection, and correct object references for reading, creating, and updating records.

How do I migrate UI bundle data access code to the Salesforce Data SDK?

To migrate UI bundle data access code, install the Salesforce Data SDK and replace existing logic with sdk.graphql, sdk.fetch, and related utilities. This standardizes reads, writes, and metadata access while reducing the surface area for misconfigurations.

Does the Salesforce Data SDK support both GraphQL and REST endpoints in UI bundles?

Yes, the Salesforce Data SDK supports both GraphQL and REST endpoints in UI bundles. It handles uiapi/graphql, REST endpoints, and object metadata inspection for securely reading, creating, updating, and querying Salesforce records.

Why does my UI bundle have inconsistent authentication when querying Salesforce records?

Inconsistent authentication when querying Salesforce records often occurs because UI bundles duplicate data-access logic. Enforcing the Salesforce Data SDK standardizes authentication handling, CSRF protection, and URL resolution across all GraphQL and REST data operations.

Can I use the Salesforce Data SDK for object metadata inspection in UI bundles?

Yes, you can use the Salesforce Data SDK for object metadata inspection in UI bundles. It covers common data access patterns including uiapi/graphql, REST endpoints, and metadata queries to securely read, create, update, or delete Salesforce records.

What limitations exist when using custom REST endpoints instead of the Data SDK in UI bundles?

Using custom REST endpoints instead of the Data SDK in UI bundles risks inconsistent authentication and CSRF protection gaps. Bypassing the SDK duplicates data-access logic and increases the surface area for misconfigurations across Salesforce record interactions.