using-ui-bundle-salesforce-data

Access Salesforce data in UI bundles using @salesforce/sdk-data with GraphQL and REST APIs.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @salesforce/sdk-data, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines Salesforce data access for UI bundles, ensuring secure and compliant operations with the Data SDK.

Core Features & Use Cases

  • Data SDK Integration: Utilizes @salesforce/sdk-data for secure, authenticated data access.
  • Preconditions Verification: Ensures all prerequisites are met before proceeding with data operations.
  • GraphQL vs REST Decision: Guidelines for choosing the right API for specific tasks.
  • GraphQL Non-Negotiable Rules: Best practices and common pitfalls to avoid when using Salesforce GraphQL.
  • GraphQL Workflow: Step-by-step guide for crafting GraphQL queries and mutations.
  • UI Bundle Integration: Integration patterns for React UI bundles.
  • REST API Patterns: Usage of REST APIs for Salesforce data operations.
  • Directory Structure: Overview of the project directory layout for UI bundles.
  • Quick Reference: Quick reference for schema lookup and common errors.

Quick Start

Use the using-ui-bundle-salesforce-data skill to ensure all prerequisites are met before beginning Salesforce data operations in your UI bundle.

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

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

FAQPage Schema
How do I access Salesforce data in a UI bundle?

To access Salesforce data in a UI bundle, use the @salesforce/sdk-data package to ensure secure, authenticated operations. This approach provides integration patterns for React UI bundles while verifying all preconditions are met before data operations.

When should I use GraphQL vs REST API for Salesforce data operations?

Choosing between GraphQL and REST API for Salesforce data operations depends on your specific task requirements. This Skill provides guidelines for selecting the right API, outlining when to use GraphQL for complex queries versus REST for standard data operations.

What are the best practices for using Salesforce GraphQL in UI bundles?

Salesforce GraphQL best practices in UI bundles involve following non-negotiable rules to avoid common pitfalls. You must perform a schema lookup and adhere to a step-by-step workflow for crafting queries and mutations to ensure compliant data access.

Do I need @salesforce/sdk-data to connect my React UI bundle to Salesforce?

Yes, @salesforce/sdk-data is required for secure and authenticated Salesforce data access in React UI bundles. It facilitates preconditions verification and provides the necessary framework for compliant operations using GraphQL or REST APIs.

What are common pitfalls when querying Salesforce data with GraphQL?

Common pitfalls when querying Salesforce data with GraphQL include ignoring schema lookups and violating non-negotiable best practices. This Skill helps navigate these constraints by providing a quick reference for common errors and a structured workflow.