salesforce-web-app-list-and-create-records

List and create Salesforce custom object records from web apps using GraphQL and createRecord.

803|289|Updated Nov 7, 2025
One-click install
npx skills add https://github.com/forcedotcom/afv-library --skill salesforce-web-app-list-and-create-records
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: salesforce-web-app-list-and-create-records
Source: https://github.com/forcedotcom/afv-library/tree/main/skills/salesforce-web-app-list-and-create-records
Command: npx skills add https://github.com/forcedotcom/afv-library --skill salesforce-web-app-list-and-create-records

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers list and create Salesforce custom object records from web apps, reducing manual effort and ensuring UI reflects changes in real time.

Core Features & Use Cases

  • List records via GraphQL queries and dashboards; update lists without full page reload.
  • Create records with webapp API and refresh the list automatically using a refetch hook.
  • Validate field values against object metadata, including default picklists, to prevent invalid submissions.

Quick Start

Trigger the skill by wiring your web app to list and create Salesforce records for a custom object.

Frequently Asked Questions about salesforce-web-app-list-and-create-records

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

FAQPage Schema
How do I list and create Salesforce custom object records in a React web app?

To list and create Salesforce custom object records in a React web app, use GraphQL queries to fetch list data and the createRecord API to submit new entries. This approach ensures dashboards update efficiently without full page reloads.

How do I refresh a Salesforce records list in a web app after creating a new record?

You refresh a Salesforce records list after creation by using a refetch hook within your web app. This automatically updates the displayed GraphQL query data, ensuring the UI reflects newly created records in real time.

How do I validate web form fields against Salesforce object metadata before creating a record?

Validating web form fields against Salesforce object metadata involves matching user inputs to default picklists and required fields. This prevents invalid submissions by enforcing field-level constraints directly in the web application.

Can I use GraphQL to display Salesforce records in a dashboard table?

Yes, you can use GraphQL to display Salesforce records in a dashboard table. The skill enforces webApplicationFeature for GraphQL connections, enabling efficient data retrieval and dynamic list updates for your custom objects.

What is the best way to handle Salesforce record IDs when creating records from a web application?

The best way to handle Salesforce record IDs when creating records from a web application is to enforce proper id handling during the createRecord process. This ensures data integrity and successful refetch operations.