
Using Ui Bundle Salesforce Data
This walks Claude through Salesforce data access inside UI bundles using the Data SDK and GraphQL. It's heavily opinionated because the Salesforce GraphQL implementation has sharp edges: HTTP 200 doesn't mean success, missing the @optional directive breaks queries when users lack field permissions, and the schema is 265K lines you need to search with a script instead of opening directly. The precondition checks are useful since you can't write queries until schema.graphql exists and custom objects are deployed. If you're building forms or pages that touch Salesforce records in a UI bundle, this keeps you from making the mistakes that cause silent failures. The REST vs GraphQL decision tree and mutation syntax rules are the most immediately practical parts.
- skills.sh installs
- 1.5K
- GitHub stars
- 705
- last updated
- Jul 14, 2026
Install
$ npx -y skills add forcedotcom/afv-library --skill using-ui-bundle-salesforce-data --agent claude-codeInstalls into .claude/skills of the current project.
Files
This walks Claude through Salesforce data access inside UI bundles using the Data SDK and GraphQL. It's heavily opinionated because the Salesforce GraphQL implementation has sharp edges: HTTP 200 doesn't mean success, missing the @optional directive breaks queries when users lack field permissions, and the schema is 265K lines you need to search with a script instead of opening directly. The precondition checks are useful since you can't write queries until schema.graphql exists and custom objects are deployed. If you're building forms or pages that touch Salesforce records in a UI bundle, this keeps you from making the mistakes that cause silent failures. The REST vs GraphQL decision tree and mutation syntax rules are the most immediately practical parts.
Browse the repository on GitHubSponsors
Details
- Repository
- github.com/forcedotcom/afv-library
- Categories
- Frontend Development, Sales & Marketing
- First seen
- May 16, 2026
More from forcedotcom/afv-library
All 58- Creating B2b Commerce Store1.4K
- Generating Lwc Components541
- Querying Soql540
- Developing Datacloud Code Extension539
- Fetching Salesforce Docs537
- Getting Datacloud Schema536
- Deploying Metadata534
- Debugging Apex Logs532
- Handling Sf Data532
- Generating Mermaid Diagrams531
- Generating Visual Diagrams531
- Running Apex Tests531
- Configuring Connected Apps526
- Building Sf Integrations523
- Retrieving Datacloud523
- Activating Datacloud522
- Harmonizing Datacloud520
- Connecting Datacloud519
- Orchestrating Datacloud519
- Preparing Datacloud519
- Segmenting Datacloud518
- Building Omnistudio Flexcard511
- Analyzing Omnistudio Dependencies510
- Building Omnistudio Callable Apex509